hotfix/fix-upgrade #50

Merged
v4l3n71n merged 16 commits from hotfix/fix-upgrade into main 2025-09-05 21:32:29 +00:00
334 changed files with 18314 additions and 34 deletions
Showing only changes of commit 692d55858c - Show all commits

View File

@@ -230,15 +230,45 @@ class _MapboxPagesState extends State<MapboxPages> with ShowAlertDialog {
drawer: MyDrawer(), drawer: MyDrawer(),
body: isLoading body: isLoading
? const Center(child: CircularProgressIndicator()) ? const Center(child: CircularProgressIndicator())
: mapbox.MapWidget( : Column(
onMapCreated: (controller) { children: [
mapboxMap = controller; Row(
}, mainAxisAlignment: MainAxisAlignment.center,
cameraOptions: mapbox.CameraOptions( children: [
center: mapbox.Point( const Text("Mode : "),
coordinates: mapbox.Position(longitude, latitude)), DropdownButton<String>(
zoom: 14.0, value: selectedMode,
), items: const [
DropdownMenuItem(
value: 'driving', child: Text("🚗 Voiture")),
DropdownMenuItem(
value: 'walking', child: Text("🚶 Marche")),
DropdownMenuItem(
value: 'cycling', child: Text("🚴 Vélo")),
],
onChanged: (value) {
if (value != null) {
setState(() {
selectedMode = value;
});
}
},
),
],
),
Expanded(
child: mapbox.MapWidget(
onMapCreated: (controller) {
mapboxMap = controller;
},
cameraOptions: mapbox.CameraOptions(
center: mapbox.Point(
coordinates: mapbox.Position(longitude, latitude)),
zoom: 14.0,
),
),
),
],
), ),
floatingActionButton: FloatingActionButton( floatingActionButton: FloatingActionButton(
onPressed: _drawRouteAndMarkers, onPressed: _drawRouteAndMarkers,