diff --git a/lib/widgets/picker_fields/card_settings_list_picker.dart b/lib/widgets/picker_fields/card_settings_list_picker.dart index 9d6c43c..89c5a30 100644 --- a/lib/widgets/picker_fields/card_settings_list_picker.dart +++ b/lib/widgets/picker_fields/card_settings_list_picker.dart @@ -34,7 +34,7 @@ class CardSettingsListPicker extends FormField this.fieldPadding, }) : super( key: key, - initialValue: initialItem ?? null, + initialValue: initialItem, onSaved: onSaved, validator: validator, autovalidateMode: autovalidateMode, diff --git a/lib/widgets/picker_fields/card_settings_radio_picker.dart b/lib/widgets/picker_fields/card_settings_radio_picker.dart index ca78b8c..17fbe66 100644 --- a/lib/widgets/picker_fields/card_settings_radio_picker.dart +++ b/lib/widgets/picker_fields/card_settings_radio_picker.dart @@ -35,7 +35,7 @@ class CardSettingsRadioPicker extends FormField this.fieldPadding, }) : super( key: key, - initialValue: initialItem ?? null, + initialValue: initialItem, onSaved: onSaved, validator: validator, // autovalidate: autovalidate, diff --git a/lib/widgets/picker_fields/card_settings_selection_picker.dart b/lib/widgets/picker_fields/card_settings_selection_picker.dart index cfc107b..7e2c023 100644 --- a/lib/widgets/picker_fields/card_settings_selection_picker.dart +++ b/lib/widgets/picker_fields/card_settings_selection_picker.dart @@ -36,7 +36,7 @@ class CardSettingsSelectionPicker extends FormField this.iconizer, }) : super( key: key, - initialValue: initialItem ?? null, + initialValue: initialItem, onSaved: onSaved, validator: validator, // autovalidate: autovalidate, diff --git a/pubspec.yaml b/pubspec.yaml index 0315c01..eb22f52 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: card_settings description: A flutter package for building card based settings forms. This includes a library of pre-built form field widgets. -version: 3.5.0 +version: 3.5.1 homepage: https://github.com/codegrue/card_settings issue_tracker: https://github.com/codegrue/card_settings/issues