From 560d6ee08a53da2078dcd98c4ae10fa706334b76 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Fri, 15 Jul 2022 21:50:14 +0530 Subject: [PATCH] update --- .../destination_map/destination_map_page.dart | 5 ++- lib/widgets/bottom_sheet_new.dart | 38 +++++++++---------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/lib/pages/destination_map/destination_map_page.dart b/lib/pages/destination_map/destination_map_page.dart index eaaa24f..b7d0002 100644 --- a/lib/pages/destination_map/destination_map_page.dart +++ b/lib/pages/destination_map/destination_map_page.dart @@ -171,7 +171,7 @@ class _DestinationMapPageState extends State { zoom: 1, maxZoom: 20, interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag, - plugins: [LocationMarkerPlugin(),] + //plugins: [LocationMarkerPlugin(),] ), children: [ TileLayerWidget( @@ -205,7 +205,8 @@ class _DestinationMapPageState extends State { options: MarkerLayerOptions( markers: getMarkers()! ), - ) + ), + LocationMarkerLayerWidget(), ], ); diff --git a/lib/widgets/bottom_sheet_new.dart b/lib/widgets/bottom_sheet_new.dart index 906cb08..8835a64 100644 --- a/lib/widgets/bottom_sheet_new.dart +++ b/lib/widgets/bottom_sheet_new.dart @@ -549,28 +549,26 @@ class BottomSheetNew extends GetView { children: [ Text(label), SizedBox(width: 10.0,), - Flexible( - child: InkWell( - onTap: (){ - if(isurl){ - if(indexController.rog_mode == 0){ - _launchURL(indexController.currentFeature[0].properties!["webcontents"]); - } - else { - indexController.currentDestinationFeature[0].webcontents; - } - + InkWell( + onTap: (){ + if(isurl){ + if(indexController.rog_mode == 0){ + _launchURL(indexController.currentFeature[0].properties!["webcontents"]); } - }, - child: Text(text, - style: TextStyle( - color: Colors.blue, - ), - overflow: TextOverflow.ellipsis, - maxLines: 5, + else { + indexController.currentDestinationFeature[0].webcontents; + } + + } + }, + child: Text(text, + style: TextStyle( + color: Colors.blue, ), - ), - ), + overflow: TextOverflow.ellipsis, + maxLines: 5, + ), + ), ], ); }