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,20 +42,18 @@ class _HistoryPageState extends State<HistoryPage> {
return Container(
width: MediaQuery.of(context).size.width,
height: 150,
child: Expanded(
child: ListView.builder(
itemCount: dests.length,
itemBuilder: (ctx, index) {
return ListTile(
title: Text(dests[index].name ?? ""),
subtitle:
Text(dests[index].address ?? ""),
leading: dests[0].photos != null
? Container(width: 100, height: 100, child: Image.file(File(dests[0].photos!)))
: Container(),
);
}),
));
child: ListView.builder(
itemCount: dests.length,
itemBuilder: (ctx, index) {
return ListTile(
title: Text(dests[index].name ?? ""),
subtitle:
Text(dests[index].address ?? ""),
leading: dests[0].photos != null
? Container(width: 100, height: 100, child: Image.file(File(dests[0].photos!)))
: Container(),
);
}));
} else {
return Center(child: Text("No checkin yet"));
}

View File

@ -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,
),
),
),

View File

@ -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.
),