Fixing inverted boolean issue (see changelog)
This commit is contained in:
parent
c3898a8c57
commit
ddc994cdce
3 changed files with 33 additions and 26 deletions
|
@ -11,3 +11,11 @@
|
|||
## 0.1.0
|
||||
|
||||
* Updating documentation!
|
||||
|
||||
## 0.1.1
|
||||
|
||||
* Formatting with DartFM!
|
||||
|
||||
## 0.1.2
|
||||
|
||||
* Fixing an incorrect boolean (iOS picker was inverted with the Android one)
|
|
@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
|
||||
/// A [FormField] that contains a [DateField].
|
||||
///
|
||||
/// This is a convenience widget that wraps a [DateField] widget in a
|
||||
|
@ -147,9 +146,8 @@ class DateField extends StatelessWidget {
|
|||
|
||||
/// Shows a dialog asking the user to pick a date !
|
||||
Future<void> _selectDate(BuildContext context) async {
|
||||
|
||||
TextFormField();
|
||||
if (!Platform.isIOS) {
|
||||
if (Platform.isIOS) {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
builder: (BuildContext builder) {
|
||||
|
@ -250,7 +248,8 @@ class _InputDropdown extends StatelessWidget {
|
|||
borderRadius: inkwellBorderRadius,
|
||||
onTap: onPressed,
|
||||
child: InputDecorator(
|
||||
decoration: decoration ?? InputDecoration(
|
||||
decoration: decoration ??
|
||||
InputDecoration(
|
||||
labelText: label,
|
||||
errorText: errorText,
|
||||
border: UnderlineInputBorder(borderSide: BorderSide()),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: date_field
|
||||
description: Contains DateField and DateFormField which allows the user to pick a DateTime from an input field!
|
||||
version: 0.1.0
|
||||
version: 0.1.2
|
||||
homepage: 'https://github.com/GaspardMerten/date_field'
|
||||
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue