diff --git a/CHANGELOG.md b/CHANGELOG.md index 14f6e86..02e9490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,4 +53,11 @@ Improvements: ##0.3.2 -* Formating with dartfm \ No newline at end of file +* Formating with dartfm + +##0.3.3 + +* Intl => any support + +Breaking change: +* Removing the label property, please consider using the InputDecoration to customize the label. \ No newline at end of file diff --git a/example/example.png b/example/example.png index 88d633c..e69de29 100644 Binary files a/example/example.png and b/example/example.png differ diff --git a/lib/date_field.dart b/lib/date_field.dart index 37216d6..8c81322 100644 --- a/lib/date_field.dart +++ b/lib/date_field.dart @@ -238,7 +238,6 @@ class DateTimeField extends StatelessWidget { return _InputDropdown( text: text ?? label, - label: text == null ? null : label, errorText: errorText, textStyle: textStyle, decoration: decoration, @@ -287,7 +286,6 @@ class _InputDropdown extends StatelessWidget { const _InputDropdown({ Key key, @required this.text, - this.label, this.decoration, this.textStyle, this.onPressed, @@ -295,9 +293,6 @@ class _InputDropdown extends StatelessWidget { }) : assert(text != null), 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 final String text; @@ -324,7 +319,6 @@ class _InputDropdown extends StatelessWidget { final InputDecoration effectiveDecoration = decoration?.copyWith(errorText: errorText) ?? InputDecoration( - labelText: label, errorText: errorText, suffixIcon: const Icon(Icons.arrow_drop_down), ).applyDefaults(Theme.of(context).inputDecorationTheme); diff --git a/pubspec.lock b/pubspec.lock index f075105..6bfcd5a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,14 +7,14 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.1.0-nullsafety.5" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.13" + version: "1.15.0-nullsafety.5" flutter: dependency: "direct main" description: flutter @@ -33,7 +33,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.8" + version: "1.3.0-nullsafety.6" path: dependency: transitive description: @@ -52,13 +52,13 @@ packages: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0-nullsafety.5" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.1.0-nullsafety.5" sdks: - dart: ">=2.9.0-14.0.dev <3.0.0" + dart: ">=2.12.0-0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 6ff3115..3fa9eed 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,12 +1,14 @@ name: date_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' environment: sdk: ">=2.1.0 <3.0.0" dependencies: - intl: ^0.16.1 flutter: sdk: flutter + + intl: ">=0.2.7 <2.0.0" +