Skip to content

Commit

Permalink
Update router to point to the right page
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Nov 23, 2023
1 parent 885f79a commit b9c7484
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 32 deletions.
24 changes: 8 additions & 16 deletions app/lib/jrouter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,6 @@ class JRouter {
view: await Chatbot().widget(),
),
app: Chatbot()),
// AppInfo(
// route: Route(
// path: '/reservations',
// name: 'Reservations',
// icon: Icons.book_online,
// view: ReservationScreen(),
// ),
// app: null),
AppInfo(
route: Route(
path: '/settings',
name: 'Settings',
icon: Icons.settings,
view: PreferenceScreen(),
),
app: null),
AppInfo(
route: Route(
path: '/identityverification',
Expand All @@ -85,6 +69,14 @@ class JRouter {
view: IdentityVerificationScreen(),
),
app: null),
AppInfo(
route: Route(
path: '/settings',
name: 'Settings',
icon: Icons.settings,
view: PreferenceScreen(),
),
app: null),
];
}

Expand Down
17 changes: 1 addition & 16 deletions app/lib/widgets/layout_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,6 @@ class _LayoutDrawerState extends State<LayoutDrawer> {
globals.tabController.animateTo(4);
},
),
// ListTile(
// minLeadingWidth: 10,
// leading: Column(
// mainAxisAlignment: MainAxisAlignment.center,
// children: <Widget>[
// Padding(padding: const EdgeInsets.only(left: 30)),
// Icon(Icons.book_online, color: Colors.black, size: 18)
// ],
// ),
// title: Text('Reserve Digital Twin'),
// onTap: () {
// Navigator.pop(context);
// globals.tabController.animateTo(4);
// },
// ),
ListTile(
minLeadingWidth: 10,
leading: Column(
Expand All @@ -160,7 +145,7 @@ class _LayoutDrawerState extends State<LayoutDrawer> {
title: Text('Identity'),
onTap: () {
Navigator.pop(context);
globals.tabController.animateTo(7);
globals.tabController.animateTo(5);
},
),
ListTile(
Expand Down

0 comments on commit b9c7484

Please sign in to comment.