Erweiterungen
This commit is contained in:
1 parent
85d6d49258
commit
286c6537b9
2 files changed
+23
-3
No files matched your search
+10
-3
@@ -186,9 +186,16 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin {
|
|||||||
|
|
||||||
return ColoredSafeArea(
|
return ColoredSafeArea(
|
||||||
key: GlobalKey(),
|
key: GlobalKey(),
|
||||||
child: PopScope(
|
child: WillPopScope(
|
||||||
canPop: contentStack.isNotEmpty,
|
onWillPop: () async {
|
||||||
onPopInvoked: (didPop) => {_popContentView()},
|
if (contentStack.isNotEmpty) {
|
||||||
|
_popContentView();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: PreferredSize(
|
appBar: PreferredSize(
|
||||||
preferredSize: const Size.fromHeight(100),
|
preferredSize: const Size.fromHeight(100),
|
||||||
|
|||||||
@@ -104,6 +104,16 @@ void showMapPopup(BuildContext context, JobTour currentTour, List<JobTour> tourL
|
|||||||
|
|
||||||
final ValueNotifier<bool> valueNotifier = ValueNotifier<bool>(true);
|
final ValueNotifier<bool> valueNotifier = ValueNotifier<bool>(true);
|
||||||
|
|
||||||
|
List<Marker> markers = [];
|
||||||
|
for (var tour in tourList) {
|
||||||
|
markers.add(
|
||||||
|
Marker(
|
||||||
|
builder: (context) => const Icon(Icons.person_pin_circle, size: 56, color: Colors.blue),
|
||||||
|
point: LatLng(tour.pos!.lat, tour.pos!.long)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.fromLTRB(30, 0, 30, 0),
|
padding: const EdgeInsets.fromLTRB(30, 0, 30, 0),
|
||||||
key: GlobalKey(),
|
key: GlobalKey(),
|
||||||
@@ -184,6 +194,9 @@ void showMapPopup(BuildContext context, JobTour currentTour, List<JobTour> tourL
|
|||||||
urlTemplate: 'https://google-maps.assecutor.de/vt/lyrs=m@130&hl=en&x={x}&y={y}&z={z}',
|
urlTemplate: 'https://google-maps.assecutor.de/vt/lyrs=m@130&hl=en&x={x}&y={y}&z={z}',
|
||||||
userAgentPackageName: 'com.example.app',
|
userAgentPackageName: 'com.example.app',
|
||||||
),
|
),
|
||||||
|
MarkerLayer(
|
||||||
|
markers: markers,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user