Skip to content

Commit ec9b465

Browse files
test: fix failed test fixes because new dart format
1 parent dd2ae90 commit ec9b465

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test_fixes/fixes_10.0.0.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ class _ExamplePageState extends State<_ExamplePage> {
3939
child: Column(
4040
children: [
4141
FormBuilderDateTimePicker(
42-
name: 'date',
4342
resetIcon: const Icon(Icons.clear),
43+
name: 'date',
44+
disablePicker: true,
45+
autofocus: true,
46+
autocorrect: true,
4447
),
4548
FormBuilderChoiceChip<String>(
4649
name: 'choice_chip',
@@ -50,7 +53,7 @@ class _ExamplePageState extends State<_ExamplePage> {
5053
'Option 3',
5154
].map((e) => FormBuilderChipOption(value: e)).toList(),
5255
),
53-
FormBuilderFilterChip(
56+
FormBuilderFilterChip<String>(
5457
maxChips: 2,
5558
decoration: const InputDecoration(
5659
labelText: 'The language of my people',

test_fixes/fixes_10.0.0.dart.expect

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class _ExamplePageState extends State<_ExamplePage> {
3939
children: [
4040
FormBuilderDateTimePicker(
4141
name: 'date',
42+
disablePicker: true,
43+
autofocus: true,
44+
autocorrect: true,
4245
),
4346
FormBuilderChoiceChips<String>(
4447
name: 'choice_chip',
@@ -48,7 +51,7 @@ class _ExamplePageState extends State<_ExamplePage> {
4851
'Option 3',
4952
].map((e) => FormBuilderChipOption(value: e)).toList(),
5053
),
51-
FormBuilderFilterChips(
54+
FormBuilderFilterChips<String>(
5255
decoration: const InputDecoration(
5356
labelText: 'The language of my people',
5457
enabled: false,
@@ -85,7 +88,7 @@ class _ExamplePageState extends State<_ExamplePage> {
8588
debugPrint(_formKey.currentState?.value.toString());
8689
},
8790
child: const Text('Print'),
88-
)
91+
),
8992
],
9093
),
9194
),

0 commit comments

Comments
 (0)