Fixing inverted boolean issue (see changelog)

This commit is contained in:
Gaspard Merten 2020-03-13 00:13:31 +01:00
parent c3898a8c57
commit ddc994cdce
3 changed files with 33 additions and 26 deletions

View file

@ -11,3 +11,11 @@
## 0.1.0 ## 0.1.0
* Updating documentation! * Updating documentation!
## 0.1.1
* Formatting with DartFM!
## 0.1.2
* Fixing an incorrect boolean (iOS picker was inverted with the Android one)

View file

@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
/// A [FormField] that contains a [DateField]. /// A [FormField] that contains a [DateField].
/// ///
/// This is a convenience widget that wraps a [DateField] widget in a /// 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 ! /// Shows a dialog asking the user to pick a date !
Future<void> _selectDate(BuildContext context) async { Future<void> _selectDate(BuildContext context) async {
TextFormField(); TextFormField();
if (!Platform.isIOS) { if (Platform.isIOS) {
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,
builder: (BuildContext builder) { builder: (BuildContext builder) {
@ -250,7 +248,8 @@ class _InputDropdown extends StatelessWidget {
borderRadius: inkwellBorderRadius, borderRadius: inkwellBorderRadius,
onTap: onPressed, onTap: onPressed,
child: InputDecorator( child: InputDecorator(
decoration: decoration ?? InputDecoration( decoration: decoration ??
InputDecoration(
labelText: label, labelText: label,
errorText: errorText, errorText: errorText,
border: UnderlineInputBorder(borderSide: BorderSide()), border: UnderlineInputBorder(borderSide: BorderSide()),

View file

@ -1,6 +1,6 @@
name: date_field name: date_field
description: Contains DateField and DateFormField which allows the user to pick a DateTime from an input 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' homepage: 'https://github.com/GaspardMerten/date_field'
environment: environment: