File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/netglade_flutter_utils/test/src/hooks Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,6 @@ class _UnderTestWidget extends HookWidget {
32
32
required this .onAction,
33
33
});
34
34
35
- void _handlePopBtnPressed (BuildContext context) {
36
- Navigator .of (context).pop ();
37
- }
38
-
39
- void _handlePushNextBtnPressed (BuildContext context) {
40
- // ignore: avoid-undisposed-instances, ok for test
41
- unawaited (Navigator .of (context).push (MaterialPageRoute <void >(builder: (_) => const _MockPage ())));
42
- }
43
-
44
35
@override
45
36
Widget build (BuildContext context) {
46
37
final state = useState <String >('??' );
@@ -80,6 +71,15 @@ class _UnderTestWidget extends HookWidget {
80
71
],
81
72
);
82
73
}
74
+
75
+ void _handlePopBtnPressed (BuildContext context) {
76
+ Navigator .of (context).pop ();
77
+ }
78
+
79
+ void _handlePushNextBtnPressed (BuildContext context) {
80
+ // ignore: avoid-undisposed-instances, ok for test
81
+ unawaited (Navigator .of (context).push (MaterialPageRoute <void >(builder: (_) => const _MockPage ())));
82
+ }
83
83
}
84
84
85
85
void main () {
You can’t perform that action at this time.
0 commit comments