coba camera
This commit is contained in:
@@ -102,7 +102,28 @@ class CustomDrawer extends HookConsumerWidget {
|
||||
// Handle navigation to Home screen
|
||||
Navigator.pop(context);
|
||||
ref.read(currentPageProvider.state).update((state) => 0);
|
||||
Navigator.pushNamed(context, homeRoute);
|
||||
// Navigator.pushNamed(context, homeRoute);
|
||||
Navigator.pushNamed(context, cameraExampleRoute);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text(
|
||||
'Coba Camera',
|
||||
style: TextStyle(
|
||||
color: (currentMenu == 10)
|
||||
? Constant.textWhite
|
||||
: Constant.textBlack,
|
||||
),
|
||||
),
|
||||
tileColor: (currentMenu == 10)
|
||||
? Constant.pcBtnBackgroundColor
|
||||
: Colors.transparent,
|
||||
onTap: () {
|
||||
// Handle navigation to Home screen
|
||||
Navigator.pop(context);
|
||||
ref.read(currentPageProvider.state).update((state) => 10);
|
||||
// Navigator.pushNamed(context, homeRoute);
|
||||
Navigator.pushNamed(context, cobaCameraRoute);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
|
||||
Reference in New Issue
Block a user