Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
mikezamayias committed Feb 21, 2022
1 parent fa42b03 commit d697018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/flutter_ecommerce_website_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _FlutterEcommerceWebsiteDemoState
? desktopNavigationAppBarActions(context)
: mobileNavigationAppBarActions(context),
),
body: pages[context.watch<PageKeyProvider>().key]!,
body: pageRoutes[context.watch<PageKeyProvider>().key]!,
);
},
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'phones/view/phones_page_view.dart';
import 'sign_in/view/sign_in_page_view.dart';
import 'sign_up/view/sign_up_page_view.dart';

final pages = {
final pageRoutes = {
'/': const HomePageView(),
'/phones': const PhonesPageView(),
'/signup': const SignUpPageView(),
Expand Down

0 comments on commit d697018

Please sign in to comment.