fixed popup and map scale issues
This commit is contained in:
@ -108,7 +108,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
print('---- rog_mode ----- ${indexController.rog_mode} -----');
|
||||
return indexController.rog_mode == 0
|
||||
? detailsSheet(context)
|
||||
: destinationSheet(context);
|
||||
: Container(width: 200, height: 250, color: Colors.purple,); //destinationSheet(context);
|
||||
}
|
||||
|
||||
// Show destination detais
|
||||
@ -1011,14 +1011,12 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
},
|
||||
child: SizedBox(
|
||||
width: MediaQuery.of(context).size.width - (MediaQuery.of(context).size.width * 0.28),
|
||||
child: Expanded(
|
||||
child: Text(
|
||||
text,
|
||||
textDirection: TextDirection.ltr,
|
||||
textAlign: TextAlign.justify,
|
||||
style: TextStyle(
|
||||
color: isurl ? Colors.blue : Colors.black,
|
||||
),
|
||||
child: Text(
|
||||
text,
|
||||
textDirection: TextDirection.ltr,
|
||||
textAlign: TextAlign.justify,
|
||||
style: TextStyle(
|
||||
color: isurl ? Colors.blue : Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@ -155,7 +155,9 @@ class MapWidget extends StatelessWidget {
|
||||
interactiveFlags:
|
||||
InteractiveFlag.pinchZoom | InteractiveFlag.drag,
|
||||
|
||||
onPositionChanged: (MapPosition pos, isvalue) {},
|
||||
onPositionChanged: (MapPosition pos, isvalue) {
|
||||
indexController.currentBound = [pos.bounds!];
|
||||
},
|
||||
onTap: (_, __) => _popupController
|
||||
.hideAllPopups(), // Hide popup when the map is tapped.
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user