Skip to content

Commit 1e7decb

Browse files
committed
test fixes
flutter-version: 3.27.4 bugfix rf18
1 parent 3184b76 commit 1e7decb

File tree

76 files changed

+706
-501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+706
-501
lines changed

packages/generator_tests/test/doc/array_nullable_output_test.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ReactiveArrayNullableOForm extends StatelessWidget {
106106
required this.form,
107107
required this.child,
108108
this.canPop,
109-
this.onPopInvoked,
109+
this.onPopInvokedWithResult,
110110
}) : super(key: key);
111111
112112
final Widget child;
@@ -115,7 +115,8 @@ class ReactiveArrayNullableOForm extends StatelessWidget {
115115
116116
final bool Function(FormGroup formGroup)? canPop;
117117
118-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
118+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
119+
onPopInvokedWithResult;
119120
120121
static ArrayNullableOForm? of(BuildContext context, {bool listen = true}) {
121122
if (listen) {
@@ -142,7 +143,7 @@ class ReactiveArrayNullableOForm extends StatelessWidget {
142143
stream: form.form.statusChanged,
143144
child: ReactiveFormPopScope(
144145
canPop: canPop,
145-
onPopInvoked: onPopInvoked,
146+
onPopInvokedWithResult: onPopInvokedWithResult,
146147
child: child,
147148
),
148149
);
@@ -163,7 +164,7 @@ class ArrayNullableOFormBuilder extends StatefulWidget {
163164
this.model,
164165
this.child,
165166
this.canPop,
166-
this.onPopInvoked,
167+
this.onPopInvokedWithResult,
167168
required this.builder,
168169
this.initState,
169170
}) : super(key: key);
@@ -174,7 +175,8 @@ class ArrayNullableOFormBuilder extends StatefulWidget {
174175
175176
final bool Function(FormGroup formGroup)? canPop;
176177
177-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
178+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
179+
onPopInvokedWithResult;
178180
179181
final Widget Function(
180182
BuildContext context,
@@ -267,7 +269,7 @@ class _ArrayNullableOFormBuilderState extends State<ArrayNullableOFormBuilder> {
267269
child: ReactiveFormBuilder(
268270
form: () => _formModel.form,
269271
canPop: widget.canPop,
270-
onPopInvoked: widget.onPopInvoked,
272+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
271273
builder: (context, formGroup, child) =>
272274
widget.builder(context, _formModel, widget.child),
273275
child: widget.child,

packages/generator_tests/test/doc/array_nullable_test.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class ReactiveArrayNullableForm extends StatelessWidget {
109109
required this.form,
110110
required this.child,
111111
this.canPop,
112-
this.onPopInvoked,
112+
this.onPopInvokedWithResult,
113113
}) : super(key: key);
114114
115115
final Widget child;
@@ -118,7 +118,8 @@ class ReactiveArrayNullableForm extends StatelessWidget {
118118
119119
final bool Function(FormGroup formGroup)? canPop;
120120
121-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
121+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
122+
onPopInvokedWithResult;
122123
123124
static ArrayNullableForm? of(BuildContext context, {bool listen = true}) {
124125
if (listen) {
@@ -145,7 +146,7 @@ class ReactiveArrayNullableForm extends StatelessWidget {
145146
stream: form.form.statusChanged,
146147
child: ReactiveFormPopScope(
147148
canPop: canPop,
148-
onPopInvoked: onPopInvoked,
149+
onPopInvokedWithResult: onPopInvokedWithResult,
149150
child: child,
150151
),
151152
);
@@ -166,7 +167,7 @@ class ArrayNullableFormBuilder extends StatefulWidget {
166167
this.model,
167168
this.child,
168169
this.canPop,
169-
this.onPopInvoked,
170+
this.onPopInvokedWithResult,
170171
required this.builder,
171172
this.initState,
172173
}) : super(key: key);
@@ -177,7 +178,8 @@ class ArrayNullableFormBuilder extends StatefulWidget {
177178
178179
final bool Function(FormGroup formGroup)? canPop;
179180
180-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
181+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
182+
onPopInvokedWithResult;
181183
182184
final Widget Function(
183185
BuildContext context,
@@ -270,7 +272,7 @@ class _ArrayNullableFormBuilderState extends State<ArrayNullableFormBuilder> {
270272
child: ReactiveFormBuilder(
271273
form: () => _formModel.form,
272274
canPop: widget.canPop,
273-
onPopInvoked: widget.onPopInvoked,
275+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
274276
builder: (context, formGroup, child) =>
275277
widget.builder(context, _formModel, widget.child),
276278
child: widget.child,

packages/generator_tests/test/doc/create_output_test.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class ReactiveMSICreateForm extends StatelessWidget {
155155
required this.form,
156156
required this.child,
157157
this.canPop,
158-
this.onPopInvoked,
158+
this.onPopInvokedWithResult,
159159
}) : super(key: key);
160160
161161
final Widget child;
@@ -164,7 +164,8 @@ class ReactiveMSICreateForm extends StatelessWidget {
164164
165165
final bool Function(FormGroup formGroup)? canPop;
166166
167-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
167+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
168+
onPopInvokedWithResult;
168169
169170
static MSICreateForm? of(BuildContext context, {bool listen = true}) {
170171
if (listen) {
@@ -189,7 +190,7 @@ class ReactiveMSICreateForm extends StatelessWidget {
189190
stream: form.form.statusChanged,
190191
child: ReactiveFormPopScope(
191192
canPop: canPop,
192-
onPopInvoked: onPopInvoked,
193+
onPopInvokedWithResult: onPopInvokedWithResult,
193194
child: child,
194195
),
195196
);
@@ -209,7 +210,7 @@ class MSICreateFormBuilder extends StatefulWidget {
209210
this.model,
210211
this.child,
211212
this.canPop,
212-
this.onPopInvoked,
213+
this.onPopInvokedWithResult,
213214
required this.builder,
214215
this.initState,
215216
}) : super(key: key);
@@ -220,7 +221,8 @@ class MSICreateFormBuilder extends StatefulWidget {
220221
221222
final bool Function(FormGroup formGroup)? canPop;
222223
223-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
224+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
225+
onPopInvokedWithResult;
224226
225227
final Widget Function(
226228
BuildContext context,
@@ -311,7 +313,7 @@ class _MSICreateFormBuilderState extends State<MSICreateFormBuilder> {
311313
child: ReactiveFormBuilder(
312314
form: () => _formModel.form,
313315
canPop: widget.canPop,
314-
onPopInvoked: widget.onPopInvoked,
316+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
315317
builder: (context, formGroup, child) =>
316318
widget.builder(context, _formModel, widget.child),
317319
child: widget.child,

packages/generator_tests/test/doc/delivery_list_output_test.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ReactiveDeliveryListOForm extends StatelessWidget {
147147
required this.form,
148148
required this.child,
149149
this.canPop,
150-
this.onPopInvoked,
150+
this.onPopInvokedWithResult,
151151
}) : super(key: key);
152152
153153
final Widget child;
@@ -156,7 +156,8 @@ class ReactiveDeliveryListOForm extends StatelessWidget {
156156
157157
final bool Function(FormGroup formGroup)? canPop;
158158
159-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
159+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
160+
onPopInvokedWithResult;
160161
161162
static DeliveryListOForm? of(BuildContext context, {bool listen = true}) {
162163
if (listen) {
@@ -183,7 +184,7 @@ class ReactiveDeliveryListOForm extends StatelessWidget {
183184
stream: form.form.statusChanged,
184185
child: ReactiveFormPopScope(
185186
canPop: canPop,
186-
onPopInvoked: onPopInvoked,
187+
onPopInvokedWithResult: onPopInvokedWithResult,
187188
child: child,
188189
),
189190
);
@@ -204,7 +205,7 @@ class DeliveryListOFormBuilder extends StatefulWidget {
204205
this.model,
205206
this.child,
206207
this.canPop,
207-
this.onPopInvoked,
208+
this.onPopInvokedWithResult,
208209
required this.builder,
209210
this.initState,
210211
}) : super(key: key);
@@ -215,7 +216,8 @@ class DeliveryListOFormBuilder extends StatefulWidget {
215216
216217
final bool Function(FormGroup formGroup)? canPop;
217218
218-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
219+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
220+
onPopInvokedWithResult;
219221
220222
final Widget Function(
221223
BuildContext context,
@@ -308,7 +310,7 @@ class _DeliveryListOFormBuilderState extends State<DeliveryListOFormBuilder> {
308310
child: ReactiveFormBuilder(
309311
form: () => _formModel.form,
310312
canPop: widget.canPop,
311-
onPopInvoked: widget.onPopInvoked,
313+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
312314
builder: (context, formGroup, child) =>
313315
widget.builder(context, _formModel, widget.child),
314316
child: widget.child,
@@ -2596,7 +2598,7 @@ class ReactiveStandaloneDeliveryPointForm extends StatelessWidget {
25962598
required this.form,
25972599
required this.child,
25982600
this.canPop,
2599-
this.onPopInvoked,
2601+
this.onPopInvokedWithResult,
26002602
}) : super(key: key);
26012603
26022604
final Widget child;
@@ -2605,7 +2607,8 @@ class ReactiveStandaloneDeliveryPointForm extends StatelessWidget {
26052607
26062608
final bool Function(FormGroup formGroup)? canPop;
26072609
2608-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
2610+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
2611+
onPopInvokedWithResult;
26092612
26102613
static StandaloneDeliveryPointForm? of(
26112614
BuildContext context, {
@@ -2635,7 +2638,7 @@ class ReactiveStandaloneDeliveryPointForm extends StatelessWidget {
26352638
stream: form.form.statusChanged,
26362639
child: ReactiveFormPopScope(
26372640
canPop: canPop,
2638-
onPopInvoked: onPopInvoked,
2641+
onPopInvokedWithResult: onPopInvokedWithResult,
26392642
child: child,
26402643
),
26412644
);
@@ -2656,7 +2659,7 @@ class StandaloneDeliveryPointFormBuilder extends StatefulWidget {
26562659
this.model,
26572660
this.child,
26582661
this.canPop,
2659-
this.onPopInvoked,
2662+
this.onPopInvokedWithResult,
26602663
required this.builder,
26612664
this.initState,
26622665
}) : super(key: key);
@@ -2667,7 +2670,8 @@ class StandaloneDeliveryPointFormBuilder extends StatefulWidget {
26672670
26682671
final bool Function(FormGroup formGroup)? canPop;
26692672
2670-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
2673+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
2674+
onPopInvokedWithResult;
26712675
26722676
final Widget Function(
26732677
BuildContext context,
@@ -2766,7 +2770,7 @@ class _StandaloneDeliveryPointFormBuilderState
27662770
child: ReactiveFormBuilder(
27672771
form: () => _formModel.form,
27682772
canPop: widget.canPop,
2769-
onPopInvoked: widget.onPopInvoked,
2773+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
27702774
builder: (context, formGroup, child) =>
27712775
widget.builder(context, _formModel, widget.child),
27722776
child: widget.child,

packages/generator_tests/test/doc/delivery_list_test.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class ReactiveDeliveryListForm extends StatelessWidget {
139139
required this.form,
140140
required this.child,
141141
this.canPop,
142-
this.onPopInvoked,
142+
this.onPopInvokedWithResult,
143143
}) : super(key: key);
144144
145145
final Widget child;
@@ -148,7 +148,8 @@ class ReactiveDeliveryListForm extends StatelessWidget {
148148
149149
final bool Function(FormGroup formGroup)? canPop;
150150
151-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
151+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
152+
onPopInvokedWithResult;
152153
153154
static DeliveryListForm? of(BuildContext context, {bool listen = true}) {
154155
if (listen) {
@@ -175,7 +176,7 @@ class ReactiveDeliveryListForm extends StatelessWidget {
175176
stream: form.form.statusChanged,
176177
child: ReactiveFormPopScope(
177178
canPop: canPop,
178-
onPopInvoked: onPopInvoked,
179+
onPopInvokedWithResult: onPopInvokedWithResult,
179180
child: child,
180181
),
181182
);
@@ -196,7 +197,7 @@ class DeliveryListFormBuilder extends StatefulWidget {
196197
this.model,
197198
this.child,
198199
this.canPop,
199-
this.onPopInvoked,
200+
this.onPopInvokedWithResult,
200201
required this.builder,
201202
this.initState,
202203
}) : super(key: key);
@@ -207,7 +208,8 @@ class DeliveryListFormBuilder extends StatefulWidget {
207208
208209
final bool Function(FormGroup formGroup)? canPop;
209210
210-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
211+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
212+
onPopInvokedWithResult;
211213
212214
final Widget Function(
213215
BuildContext context,
@@ -300,7 +302,7 @@ class _DeliveryListFormBuilderState extends State<DeliveryListFormBuilder> {
300302
child: ReactiveFormBuilder(
301303
form: () => _formModel.form,
302304
canPop: widget.canPop,
303-
onPopInvoked: widget.onPopInvoked,
305+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
304306
builder: (context, formGroup, child) =>
305307
widget.builder(context, _formModel, widget.child),
306308
child: widget.child,
@@ -2530,7 +2532,7 @@ class ReactiveStandaloneDeliveryPointForm extends StatelessWidget {
25302532
required this.form,
25312533
required this.child,
25322534
this.canPop,
2533-
this.onPopInvoked,
2535+
this.onPopInvokedWithResult,
25342536
}) : super(key: key);
25352537
25362538
final Widget child;
@@ -2539,7 +2541,8 @@ class ReactiveStandaloneDeliveryPointForm extends StatelessWidget {
25392541
25402542
final bool Function(FormGroup formGroup)? canPop;
25412543
2542-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
2544+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
2545+
onPopInvokedWithResult;
25432546
25442547
static StandaloneDeliveryPointForm? of(
25452548
BuildContext context, {
@@ -2569,7 +2572,7 @@ class ReactiveStandaloneDeliveryPointForm extends StatelessWidget {
25692572
stream: form.form.statusChanged,
25702573
child: ReactiveFormPopScope(
25712574
canPop: canPop,
2572-
onPopInvoked: onPopInvoked,
2575+
onPopInvokedWithResult: onPopInvokedWithResult,
25732576
child: child,
25742577
),
25752578
);
@@ -2590,7 +2593,7 @@ class StandaloneDeliveryPointFormBuilder extends StatefulWidget {
25902593
this.model,
25912594
this.child,
25922595
this.canPop,
2593-
this.onPopInvoked,
2596+
this.onPopInvokedWithResult,
25942597
required this.builder,
25952598
this.initState,
25962599
}) : super(key: key);
@@ -2601,7 +2604,8 @@ class StandaloneDeliveryPointFormBuilder extends StatefulWidget {
26012604
26022605
final bool Function(FormGroup formGroup)? canPop;
26032606
2604-
final void Function(FormGroup formGroup, bool didPop)? onPopInvoked;
2607+
final ReactiveFormPopInvokedWithResultCallback<dynamic>?
2608+
onPopInvokedWithResult;
26052609
26062610
final Widget Function(
26072611
BuildContext context,
@@ -2700,7 +2704,7 @@ class _StandaloneDeliveryPointFormBuilderState
27002704
child: ReactiveFormBuilder(
27012705
form: () => _formModel.form,
27022706
canPop: widget.canPop,
2703-
onPopInvoked: widget.onPopInvoked,
2707+
onPopInvokedWithResult: widget.onPopInvokedWithResult,
27042708
builder: (context, formGroup, child) =>
27052709
widget.builder(context, _formModel, widget.child),
27062710
child: widget.child,

0 commit comments

Comments
 (0)