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

@ -53,4 +53,11 @@ Improvements:
##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(
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);

View file

@ -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"

View file

@ -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"