update
This commit is contained in:
@ -37,10 +37,12 @@ class IndexPage extends GetView<IndexController> {
|
||||
const Expanded(child: Text('')),
|
||||
Expanded(child: IconButton(icon: const Icon(Icons.travel_explore), onPressed: (){
|
||||
if(indexController.currentUser.isNotEmpty){
|
||||
Get.toNamed(AppPages.TRAVEL);
|
||||
indexController.switchPage(AppPages.TRAVEL);
|
||||
//Get.toNamed(AppPages.TRAVEL);
|
||||
}
|
||||
else{
|
||||
Get.toNamed(AppPages.LOGIN);
|
||||
indexController.switchPage(AppPages.LOGIN);
|
||||
//Get.toNamed(AppPages.LOGIN);
|
||||
}
|
||||
}),),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user