Skip to content

Commit

Permalink
Merge pull request #27 from netglade/update-analysis
Browse files Browse the repository at this point in the history
Update analysis to 8
  • Loading branch information
tenhobi committed Feb 16, 2024
2 parents 345fa25 + 6abe901 commit 5d94851
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/netglade_analysis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To use the lints, add as a dev dependency in your `pubspec.yaml`:

```yaml
dev_dependencies:
netglade_analysis: ^7.0.0
netglade_analysis: ^8.0.0
```

Then, add an include in `analysis_options.yaml`:
Expand Down
2 changes: 1 addition & 1 deletion packages/netglade_flutter_utils/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
flutter:
sdk: flutter
netglade_analysis: ^7.0.0
netglade_analysis: ^8.0.0
netglade_flutter_utils:
path: ..

Expand Down
2 changes: 1 addition & 1 deletion packages/netglade_flutter_utils/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.0
netglade_analysis: ^7.0.0
netglade_analysis: ^8.0.0
test: ^1.24.6

flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ class _UnderTestWidget extends HookWidget {
required this.onAction,
});

void _handlePopBtnPressed(BuildContext context) {
Navigator.of(context).pop();
}

void _handlePushNextBtnPressed(BuildContext context) {
// ignore: avoid-undisposed-instances, ok for test
unawaited(Navigator.of(context).push(MaterialPageRoute<void>(builder: (_) => const _MockPage())));
}

@override
Widget build(BuildContext context) {
final state = useState<String>('??');
Expand Down Expand Up @@ -80,6 +71,15 @@ class _UnderTestWidget extends HookWidget {
],
);
}

void _handlePopBtnPressed(BuildContext context) {
Navigator.of(context).pop();
}

void _handlePushNextBtnPressed(BuildContext context) {
// ignore: avoid-undisposed-instances, ok for test
unawaited(Navigator.of(context).push(MaterialPageRoute<void>(builder: (_) => const _MockPage())));
}
}

void main() {
Expand Down

0 comments on commit 5d94851

Please sign in to comment.