fixed popup and map scale issues

This commit is contained in:
Mohamed Nouffer
2023-09-11 18:04:29 +05:30
parent c2d9e366d1
commit d67d17e971
3 changed files with 22 additions and 24 deletions

View File

@ -42,7 +42,6 @@ class _HistoryPageState extends State<HistoryPage> {
return Container( return Container(
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: 150, height: 150,
child: Expanded(
child: ListView.builder( child: ListView.builder(
itemCount: dests.length, itemCount: dests.length,
itemBuilder: (ctx, index) { itemBuilder: (ctx, index) {
@ -54,8 +53,7 @@ class _HistoryPageState extends State<HistoryPage> {
? Container(width: 100, height: 100, child: Image.file(File(dests[0].photos!))) ? Container(width: 100, height: 100, child: Image.file(File(dests[0].photos!)))
: Container(), : Container(),
); );
}), }));
));
} else { } else {
return Center(child: Text("No checkin yet")); return Center(child: Text("No checkin yet"));
} }

View File

@ -108,7 +108,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
print('---- rog_mode ----- ${indexController.rog_mode} -----'); print('---- rog_mode ----- ${indexController.rog_mode} -----');
return indexController.rog_mode == 0 return indexController.rog_mode == 0
? detailsSheet(context) ? detailsSheet(context)
: destinationSheet(context); : Container(width: 200, height: 250, color: Colors.purple,); //destinationSheet(context);
} }
// Show destination detais // Show destination detais
@ -1011,7 +1011,6 @@ class BottomSheetNew extends GetView<BottomSheetController> {
}, },
child: SizedBox( child: SizedBox(
width: MediaQuery.of(context).size.width - (MediaQuery.of(context).size.width * 0.28), width: MediaQuery.of(context).size.width - (MediaQuery.of(context).size.width * 0.28),
child: Expanded(
child: Text( child: Text(
text, text,
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
@ -1022,7 +1021,6 @@ class BottomSheetNew extends GetView<BottomSheetController> {
), ),
), ),
), ),
),
], ],
); );
} }

View File

@ -155,7 +155,9 @@ class MapWidget extends StatelessWidget {
interactiveFlags: interactiveFlags:
InteractiveFlag.pinchZoom | InteractiveFlag.drag, InteractiveFlag.pinchZoom | InteractiveFlag.drag,
onPositionChanged: (MapPosition pos, isvalue) {}, onPositionChanged: (MapPosition pos, isvalue) {
indexController.currentBound = [pos.bounds!];
},
onTap: (_, __) => _popupController onTap: (_, __) => _popupController
.hideAllPopups(), // Hide popup when the map is tapped. .hideAllPopups(), // Hide popup when the map is tapped.
), ),