Skip to content

Commit 5d94851

Browse files
authored
Merge pull request #27 from netglade/update-analysis
Update analysis to 8
2 parents 345fa25 + 6abe901 commit 5d94851

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

packages/netglade_analysis/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To use the lints, add as a dev dependency in your `pubspec.yaml`:
2323

2424
```yaml
2525
dev_dependencies:
26-
netglade_analysis: ^7.0.0
26+
netglade_analysis: ^8.0.0
2727
```
2828
2929
Then, add an include in `analysis_options.yaml`:

packages/netglade_flutter_utils/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
netglade_analysis: ^7.0.0
12+
netglade_analysis: ^8.0.0
1313
netglade_flutter_utils:
1414
path: ..
1515

packages/netglade_flutter_utils/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dev_dependencies:
1919
flutter_test:
2020
sdk: flutter
2121
mocktail: ^1.0.0
22-
netglade_analysis: ^7.0.0
22+
netglade_analysis: ^8.0.0
2323
test: ^1.24.6
2424

2525
flutter:

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)