From 596ca077af902a2a96e3f6ef73cc2bd1b1ef29c2 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Fri, 22 Jul 2022 23:13:44 +0530 Subject: [PATCH] update --- lib/pages/index/index_page.dart | 58 ++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/lib/pages/index/index_page.dart b/lib/pages/index/index_page.dart index 2adf1dd..1942e68 100644 --- a/lib/pages/index/index_page.dart +++ b/lib/pages/index/index_page.dart @@ -91,33 +91,45 @@ class IndexPage extends GetView { height: 50.0, child: SingleChildScrollView( scrollDirection: Axis.horizontal, - child: Obx(() => - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, + child:Row( + mainAxisAlignment: MainAxisAlignment.start, children: [ - indexController.is_mapController_loaded.value == false ? - Center(child: CircularProgressIndicator()) - : - BreadCrumbWidget(mapController: indexController.mapController), - Container(width: 24.0,), - Row( - children: [ - indexController.currentCat.isNotEmpty ? Text(indexController.currentCat[0].toString()): Text(""), - indexController.currentCat.isNotEmpty ? - IconButton( - onPressed: (){ - indexController.currentCat.clear(); - indexController.loadLocationsBound(); - }, - icon: Icon(Icons.cancel, color: Colors.red,) - ) : - Container(width: 0, height: 0,) - ], - ) + TextButton(child:Text("Main Pef >", style: TextStyle(fontSize:16.0, fontWeight: FontWeight.bold),), onPressed: (){Get.toNamed(AppPages.SEARCH);},), + TextButton(child:Text("Sub Pef >", style: TextStyle(fontSize:16.0, fontWeight: FontWeight.bold),), onPressed: (){Get.toNamed(AppPages.SEARCH);},), + TextButton(child:Text("Cities >", style: TextStyle(fontSize:16.0, fontWeight: FontWeight.bold),), onPressed: (){Get.toNamed(AppPages.SEARCH);},), + TextButton(child:Text("Categories", style: TextStyle(fontSize:16.0, fontWeight: FontWeight.bold),), onPressed: (){Get.toNamed(AppPages.SEARCH);},), ], ) - ), ), + // child: SingleChildScrollView( + // scrollDirection: Axis.horizontal, + // child: Obx(() => + // Row( + // mainAxisAlignment: MainAxisAlignment.spaceBetween, + // children: [ + // indexController.is_mapController_loaded.value == false ? + // Center(child: CircularProgressIndicator()) + // : + // BreadCrumbWidget(mapController: indexController.mapController), + // Container(width: 24.0,), + // Row( + // children: [ + // indexController.currentCat.isNotEmpty ? Text(indexController.currentCat[0].toString()): Text(""), + // indexController.currentCat.isNotEmpty ? + // IconButton( + // onPressed: (){ + // indexController.currentCat.clear(); + // indexController.loadLocationsBound(); + // }, + // icon: Icon(Icons.cancel, color: Colors.red,) + // ) : + // Container(width: 0, height: 0,) + // ], + // ) + // ], + // ) + // ), + // ), ), Expanded( child: Obx(() =>