Skip to content

Commit

Permalink
fix: lint warnings and update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Apr 2, 2024
1 parent b1bf947 commit ce11a74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_channel: stable
flutter_version: 3.13.9
flutter_version: 3.19.5

pana:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1
15 changes: 5 additions & 10 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ class MyApp extends StatelessWidget {
}
}

class Home extends StatefulWidget {
class Home extends StatelessWidget {
const Home({super.key});

@override
State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
@override
Widget build(BuildContext context) {
return Scaffold(
Expand All @@ -44,7 +39,7 @@ class _HomeState extends State<Home> {
trailing: const Icon(Icons.chevron_right),
onTap: () async {
await Navigator.of(context).push(OnboardingFlow.route());
if (!mounted) return;
if (!context.mounted) return;
ScaffoldMessenger.of(context)
..hideCurrentSnackBar()
..showSnackBar(
Expand All @@ -62,7 +57,7 @@ class _HomeState extends State<Home> {
final profile = await Navigator.of(context).push(
ProfileFlow.route(),
);
if (!mounted) return;
if (!context.mounted) return;
ScaffoldMessenger.of(context)
..hideCurrentSnackBar()
..showSnackBar(
Expand All @@ -80,7 +75,7 @@ class _HomeState extends State<Home> {
final location = await Navigator.of(context).push(
LocationFlow.route(),
);
if (!mounted) return;
if (!context.mounted) return;
ScaffoldMessenger.of(context)
..hideCurrentSnackBar()
..showSnackBar(
Expand All @@ -98,7 +93,7 @@ class _HomeState extends State<Home> {
await Navigator.of(context).push<AuthenticationState>(
AuthenticationFlow.route(),
);
if (!mounted) return;
if (!context.mounted) return;
ScaffoldMessenger.of(context)
..hideCurrentSnackBar()
..showSnackBar(
Expand Down

0 comments on commit ce11a74

Please sign in to comment.