Skip to content

Commit

Permalink
chore(logging): example app to use different keys for home page for g…
Browse files Browse the repository at this point in the history
…uest and auth user (#3935)
  • Loading branch information
NikaHsn authored and khatruong2009 committed Nov 27, 2023
1 parent d81e3d5 commit 422e687
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,23 @@ class MyApp extends StatelessWidget {
initialRoute: '/',
routes: {
'/': (BuildContext context) {
return const InitPage(
return InitPage(
key: GlobalKey(),
title: 'Amplify Logging Cloudwatch Example',
);
},
'/home': (BuildContext context) {
return const MyHomePage(
return MyHomePage(
key: GlobalKey(),
title: 'Amplify Logging Cloudwatch Example',
);
},
'/login': (BuildContext context) {
return const AuthenticatedView(
child: MyHomePage(title: 'Amplify Logging Cloudwatch Example'),
return AuthenticatedView(
child: MyHomePage(
key: GlobalKey(),
title: 'Amplify Logging Cloudwatch Example',
),
);
},
},
Expand Down

0 comments on commit 422e687

Please sign in to comment.