fixed popup and map scale issues
This commit is contained in:
@ -42,20 +42,18 @@ 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) {
|
return ListTile(
|
||||||
return ListTile(
|
title: Text(dests[index].name ?? ""),
|
||||||
title: Text(dests[index].name ?? ""),
|
subtitle:
|
||||||
subtitle:
|
Text(dests[index].address ?? ""),
|
||||||
Text(dests[index].address ?? ""),
|
leading: dests[0].photos != null
|
||||||
leading: dests[0].photos != null
|
? 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"));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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,14 +1011,12 @@ 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,
|
textAlign: TextAlign.justify,
|
||||||
textAlign: TextAlign.justify,
|
style: TextStyle(
|
||||||
style: TextStyle(
|
color: isurl ? Colors.blue : Colors.black,
|
||||||
color: isurl ? Colors.blue : Colors.black,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -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.
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user