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

@ -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);