Skip to content

Commit 6abe901

Browse files
committed
Fix lint
1 parent 4cfaeb7 commit 6abe901

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/netglade_flutter_utils/test/src/hooks/route_aware_test.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ class _UnderTestWidget extends HookWidget {
3232
required this.onAction,
3333
});
3434

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-
4435
@override
4536
Widget build(BuildContext context) {
4637
final state = useState<String>('??');
@@ -80,6 +71,15 @@ class _UnderTestWidget extends HookWidget {
8071
],
8172
);
8273
}
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+
}
8383
}
8484

8585
void main() {

0 commit comments

Comments
 (0)