Version 0.3.3

This commit is contained in:
Gaspard Merten 2020-11-25 09:54:50 +01:00
parent 360ba1b5d3
commit dbef5fe486
5 changed files with 18 additions and 15 deletions

View file

@ -54,3 +54,10 @@ Improvements:
##0.3.2 ##0.3.2
* Formating with dartfm * Formating with dartfm
##0.3.3
* Intl => any support
Breaking change:
* Removing the label property, please consider using the InputDecoration to customize the label.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 0 B

View file

@ -238,7 +238,6 @@ class DateTimeField extends StatelessWidget {
return _InputDropdown( return _InputDropdown(
text: text ?? label, text: text ?? label,
label: text == null ? null : label,
errorText: errorText, errorText: errorText,
textStyle: textStyle, textStyle: textStyle,
decoration: decoration, decoration: decoration,
@ -287,7 +286,6 @@ class _InputDropdown extends StatelessWidget {
const _InputDropdown({ const _InputDropdown({
Key key, Key key,
@required this.text, @required this.text,
this.label,
this.decoration, this.decoration,
this.textStyle, this.textStyle,
this.onPressed, this.onPressed,
@ -295,9 +293,6 @@ class _InputDropdown extends StatelessWidget {
}) : assert(text != null), }) : assert(text != null),
super(key: key); super(key: key);
/// The label to display for the field (default is 'Select date')
final String label;
/// The text that should be displayed inside the field /// The text that should be displayed inside the field
final String text; final String text;
@ -324,7 +319,6 @@ class _InputDropdown extends StatelessWidget {
final InputDecoration effectiveDecoration = final InputDecoration effectiveDecoration =
decoration?.copyWith(errorText: errorText) ?? decoration?.copyWith(errorText: errorText) ??
InputDecoration( InputDecoration(
labelText: label,
errorText: errorText, errorText: errorText,
suffixIcon: const Icon(Icons.arrow_drop_down), suffixIcon: const Icon(Icons.arrow_drop_down),
).applyDefaults(Theme.of(context).inputDecorationTheme); ).applyDefaults(Theme.of(context).inputDecorationTheme);

View file

@ -7,14 +7,14 @@ packages:
name: characters name: characters
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "1.1.0-nullsafety.5"
collection: collection:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.14.13" version: "1.15.0-nullsafety.5"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -33,7 +33,7 @@ packages:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.8" version: "1.3.0-nullsafety.6"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -52,13 +52,13 @@ packages:
name: typed_data name: typed_data
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.3.0-nullsafety.5"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
name: vector_math name: vector_math
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.8" version: "2.1.0-nullsafety.5"
sdks: sdks:
dart: ">=2.9.0-14.0.dev <3.0.0" dart: ">=2.12.0-0 <3.0.0"

View file

@ -1,12 +1,14 @@
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.3.2 version: 0.3.3
homepage: 'https://github.com/GaspardMerten/date_field' homepage: 'https://github.com/GaspardMerten/date_field'
environment: environment:
sdk: ">=2.1.0 <3.0.0" sdk: ">=2.1.0 <3.0.0"
dependencies: dependencies:
intl: ^0.16.1
flutter: flutter:
sdk: flutter sdk: flutter
intl: ">=0.2.7 <2.0.0"