@@ -7,14 +7,14 @@ import 'dart:async' as _i5;
7
7
import 'dart:ui' as _i4;
8
8
9
9
import 'package:drift/drift.dart' as _i11;
10
- import 'package:flutter/material.dart' as _i1 ;
10
+ import 'package:flutter/material.dart' as _i2 ;
11
11
import 'package:flutter_template/model/snackbar/snackbar_data.dart' as _i12;
12
12
import 'package:flutter_template/navigator/main_navigator.dart' as _i10;
13
13
import 'package:flutter_template/util/locale/localization.dart' as _i7;
14
14
import 'package:flutter_template/util/snackbar/error_util.dart' as _i9;
15
15
import 'package:flutter_template/viewmodel/global/global_viewmodel.dart' as _i3;
16
16
import 'package:icapps_architecture/icapps_architecture.dart' as _i8;
17
- import 'package:mockito/mockito.dart' as _i2 ;
17
+ import 'package:mockito/mockito.dart' as _i1 ;
18
18
import 'package:mockito/src/dummies.dart' as _i6;
19
19
20
20
// ignore_for_file: type=lint
@@ -30,9 +30,19 @@ import 'package:mockito/src/dummies.dart' as _i6;
30
30
// ignore_for_file: camel_case_types
31
31
// ignore_for_file: subtype_of_sealed_class
32
32
33
- class _FakeGlobalKey_0 <T extends _i1.State <_i1.StatefulWidget >>
34
- extends _i2.SmartFake implements _i1.GlobalKey <T > {
35
- _FakeGlobalKey_0 (
33
+ class _FakeBuildContext_0 extends _i1.SmartFake implements _i2.BuildContext {
34
+ _FakeBuildContext_0 (
35
+ Object parent,
36
+ Invocation parentInvocation,
37
+ ) : super (
38
+ parent,
39
+ parentInvocation,
40
+ );
41
+ }
42
+
43
+ class _FakeGlobalKey_1 <T extends _i2.State <_i2.StatefulWidget >>
44
+ extends _i1.SmartFake implements _i2.GlobalKey <T > {
45
+ _FakeGlobalKey_1 (
36
46
Object parent,
37
47
Invocation parentInvocation,
38
48
) : super (
@@ -44,9 +54,9 @@ class _FakeGlobalKey_0<T extends _i1.State<_i1.StatefulWidget>>
44
54
/// A class which mocks [GlobalViewModel] .
45
55
///
46
56
/// See the documentation for Mockito's code generation for more information.
47
- class MockGlobalViewModel extends _i2 .Mock implements _i3.GlobalViewModel {
57
+ class MockGlobalViewModel extends _i1 .Mock implements _i3.GlobalViewModel {
48
58
MockGlobalViewModel () {
49
- _i2 .throwOnMissingStub (this );
59
+ _i1 .throwOnMissingStub (this );
50
60
}
51
61
52
62
@override
@@ -56,10 +66,10 @@ class MockGlobalViewModel extends _i2.Mock implements _i3.GlobalViewModel {
56
66
) as List <_i4.Locale >);
57
67
58
68
@override
59
- _i1 .ThemeMode get themeMode => (super .noSuchMethod (
69
+ _i2 .ThemeMode get themeMode => (super .noSuchMethod (
60
70
Invocation .getter (#themeMode),
61
- returnValue: _i1 .ThemeMode .system,
62
- ) as _i1 .ThemeMode );
71
+ returnValue: _i2 .ThemeMode .system,
72
+ ) as _i2 .ThemeMode );
63
73
64
74
@override
65
75
bool get showsTranslationKeys => (super .noSuchMethod (
@@ -90,7 +100,7 @@ class MockGlobalViewModel extends _i2.Mock implements _i3.GlobalViewModel {
90
100
) as _i5.Future <void >);
91
101
92
102
@override
93
- _i5.Future <void > updateThemeMode (_i1 .ThemeMode ? themeMode) =>
103
+ _i5.Future <void > updateThemeMode (_i2 .ThemeMode ? themeMode) =>
94
104
(super .noSuchMethod (
95
105
Invocation .method (
96
106
#updateThemeMode,
@@ -292,15 +302,15 @@ class MockGlobalViewModel extends _i2.Mock implements _i3.GlobalViewModel {
292
302
/// A class which mocks [ErrorUtil] .
293
303
///
294
304
/// See the documentation for Mockito's code generation for more information.
295
- class MockErrorUtil extends _i2 .Mock implements _i9.ErrorUtil {
305
+ class MockErrorUtil extends _i1 .Mock implements _i9.ErrorUtil {
296
306
MockErrorUtil () {
297
- _i2 .throwOnMissingStub (this );
307
+ _i1 .throwOnMissingStub (this );
298
308
}
299
309
300
310
@override
301
311
String ? showError ({
302
312
required dynamic error,
303
- required _i1 .BuildContext ? context,
313
+ required _i2 .BuildContext ? context,
304
314
}) =>
305
315
(super .noSuchMethod (Invocation .method (
306
316
#showError,
@@ -314,7 +324,7 @@ class MockErrorUtil extends _i2.Mock implements _i9.ErrorUtil {
314
324
@override
315
325
void showErrorWithLocaleKey ({
316
326
required String ? messageKey,
317
- required _i1 .BuildContext ? context,
327
+ required _i2 .BuildContext ? context,
318
328
String ? titleKey,
319
329
List <dynamic >? args,
320
330
}) =>
@@ -336,19 +346,28 @@ class MockErrorUtil extends _i2.Mock implements _i9.ErrorUtil {
336
346
/// A class which mocks [MainNavigator] .
337
347
///
338
348
/// See the documentation for Mockito's code generation for more information.
339
- class MockMainNavigator extends _i2 .Mock implements _i10.MainNavigator {
349
+ class MockMainNavigator extends _i1 .Mock implements _i10.MainNavigator {
340
350
MockMainNavigator () {
341
- _i2 .throwOnMissingStub (this );
351
+ _i1 .throwOnMissingStub (this );
342
352
}
343
353
344
354
@override
345
- _i1.GlobalKey <_i1.NavigatorState > get navigatorKey => (super .noSuchMethod (
355
+ _i2.BuildContext get context => (super .noSuchMethod (
356
+ Invocation .getter (#context),
357
+ returnValue: _FakeBuildContext_0 (
358
+ this ,
359
+ Invocation .getter (#context),
360
+ ),
361
+ ) as _i2.BuildContext );
362
+
363
+ @override
364
+ _i2.GlobalKey <_i2.NavigatorState > get navigatorKey => (super .noSuchMethod (
346
365
Invocation .getter (#navigatorKey),
347
- returnValue: _FakeGlobalKey_0 <_i1 .NavigatorState >(
366
+ returnValue: _FakeGlobalKey_1 <_i2 .NavigatorState >(
348
367
this ,
349
368
Invocation .getter (#navigatorKey),
350
369
),
351
- ) as _i1 .GlobalKey <_i1 .NavigatorState >);
370
+ ) as _i2 .GlobalKey <_i2 .NavigatorState >);
352
371
353
372
@override
354
373
_i5.Future <void > goToDatabase (_i11.GeneratedDatabase ? db) =>
@@ -410,14 +429,14 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
410
429
) as _i5.Future <void >);
411
430
412
431
@override
413
- _i1 .Route <dynamic >? onGenerateRoute (_i1 .RouteSettings ? settings) =>
432
+ _i2 .Route <dynamic >? onGenerateRoute (_i2 .RouteSettings ? settings) =>
414
433
(super .noSuchMethod (Invocation .method (
415
434
#onGenerateRoute,
416
435
[settings],
417
- )) as _i1 .Route <dynamic >? );
436
+ )) as _i2 .Route <dynamic >? );
418
437
419
438
@override
420
- void goToHomeScreen ({_i1 .Key ? key}) => super .noSuchMethod (
439
+ void goToHomeScreen ({_i2 .Key ? key}) => super .noSuchMethod (
421
440
Invocation .method (
422
441
#goToHomeScreen,
423
442
[],
@@ -427,7 +446,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
427
446
);
428
447
429
448
@override
430
- void goToSplashScreen ({_i1 .Key ? key}) => super .noSuchMethod (
449
+ void goToSplashScreen ({_i2 .Key ? key}) => super .noSuchMethod (
431
450
Invocation .method (
432
451
#goToSplashScreen,
433
452
[],
@@ -437,7 +456,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
437
456
);
438
457
439
458
@override
440
- _i5.Future <void > goToLicenseScreen ({_i1 .Key ? key}) => (super .noSuchMethod (
459
+ _i5.Future <void > goToLicenseScreen ({_i2 .Key ? key}) => (super .noSuchMethod (
441
460
Invocation .method (
442
461
#goToLicenseScreen,
443
462
[],
@@ -448,7 +467,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
448
467
) as _i5.Future <void >);
449
468
450
469
@override
451
- _i5.Future <void > goToTodoAddScreen ({_i1 .Key ? key}) => (super .noSuchMethod (
470
+ _i5.Future <void > goToTodoAddScreen ({_i2 .Key ? key}) => (super .noSuchMethod (
452
471
Invocation .method (
453
472
#goToTodoAddScreen,
454
473
[],
@@ -459,7 +478,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
459
478
) as _i5.Future <void >);
460
479
461
480
@override
462
- _i5.Future <void > goToAnalyticsPermissionScreen ({_i1 .Key ? key}) =>
481
+ _i5.Future <void > goToAnalyticsPermissionScreen ({_i2 .Key ? key}) =>
463
482
(super .noSuchMethod (
464
483
Invocation .method (
465
484
#goToAnalyticsPermissionScreen,
@@ -471,7 +490,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
471
490
) as _i5.Future <void >);
472
491
473
492
@override
474
- void goToLoginScreen ({_i1 .Key ? key}) => super .noSuchMethod (
493
+ void goToLoginScreen ({_i2 .Key ? key}) => super .noSuchMethod (
475
494
Invocation .method (
476
495
#goToLoginScreen,
477
496
[],
@@ -481,7 +500,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
481
500
);
482
501
483
502
@override
484
- _i5.Future <void > goToThemeModeSelectorScreen ({_i1 .Key ? key}) =>
503
+ _i5.Future <void > goToThemeModeSelectorScreen ({_i2 .Key ? key}) =>
485
504
(super .noSuchMethod (
486
505
Invocation .method (
487
506
#goToThemeModeSelectorScreen,
@@ -493,7 +512,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
493
512
) as _i5.Future <void >);
494
513
495
514
@override
496
- _i5.Future <void > goToDebugPlatformSelectorScreen ({_i1 .Key ? key}) =>
515
+ _i5.Future <void > goToDebugPlatformSelectorScreen ({_i2 .Key ? key}) =>
497
516
(super .noSuchMethod (
498
517
Invocation .method (
499
518
#goToDebugPlatformSelectorScreen,
@@ -505,7 +524,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
505
524
) as _i5.Future <void >);
506
525
507
526
@override
508
- _i5.Future <void > goToDebugScreen ({_i1 .Key ? key}) => (super .noSuchMethod (
527
+ _i5.Future <void > goToDebugScreen ({_i2 .Key ? key}) => (super .noSuchMethod (
509
528
Invocation .method (
510
529
#goToDebugScreen,
511
530
[],
@@ -516,7 +535,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
516
535
) as _i5.Future <void >);
517
536
518
537
@override
519
- _i5.Future <void > goToLogsScreen ({_i1 .Key ? key}) => (super .noSuchMethod (
538
+ _i5.Future <void > goToLogsScreen ({_i2 .Key ? key}) => (super .noSuchMethod (
520
539
Invocation .method (
521
540
#goToLogsScreen,
522
541
[],
@@ -529,7 +548,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
529
548
@override
530
549
_i5.Future <void > goToLogDetailScreen ({
531
550
required String ? date,
532
- _i1 .Key ? key,
551
+ _i2 .Key ? key,
533
552
}) =>
534
553
(super .noSuchMethod (
535
554
Invocation .method (
@@ -564,7 +583,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
564
583
);
565
584
566
585
@override
567
- void popUntil (bool Function (_i1 .Route <dynamic >)? predicate) =>
586
+ void popUntil (bool Function (_i2 .Route <dynamic >)? predicate) =>
568
587
super .noSuchMethod (
569
588
Invocation .method (
570
589
#popUntil,
@@ -583,7 +602,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
583
602
);
584
603
585
604
@override
586
- _i5.Future <T ?> showCustomDialog <T >({_i1 .Widget ? widget}) =>
605
+ _i5.Future <T ?> showCustomDialog <T >({_i2 .Widget ? widget}) =>
587
606
(super .noSuchMethod (
588
607
Invocation .method (
589
608
#showCustomDialog,
@@ -594,7 +613,7 @@ class MockMainNavigator extends _i2.Mock implements _i10.MainNavigator {
594
613
) as _i5.Future <T ?>);
595
614
596
615
@override
597
- _i5.Future <T ?> showBottomSheet <T >({_i1 .Widget ? widget}) =>
616
+ _i5.Future <T ?> showBottomSheet <T >({_i2 .Widget ? widget}) =>
598
617
(super .noSuchMethod (
599
618
Invocation .method (
600
619
#showBottomSheet,
0 commit comments