Skip to content

Commit 9d19976

Browse files
committed
AppRouter initialization fix
1 parent 1d55579 commit 9d19976

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/main.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_bottom_navigation_with_nested_routing_tutorial/routes/router.gr.dart';
33

4-
void main() => runApp(const AppWidget());
4+
void main() => runApp(AppWidget());
55

66
class AppWidget extends StatelessWidget {
7-
const AppWidget({Key? key}) : super(key: key);
8-
7+
AppWidget({Key? key}) : super(key: key);
8+
final _appRouter = AppRouter();
99
@override
1010
Widget build(BuildContext context) {
11-
final _appRouter = AppRouter();
1211
return MaterialApp.router(
1312
debugShowCheckedModeBanner: false,
1413
title: 'Bottom Nav Bar with Nested Routing',

0 commit comments

Comments
 (0)