maps launcher working

This commit is contained in:
Kima 2024-02-11 22:26:01 +01:00
parent 120215d3b8
commit 0d18309583

View File

@ -110,23 +110,6 @@ class LiveCardStateA extends State<LiveCard> {
onTap: () async { onTap: () async {
await MapsLauncher.launchQuery( await MapsLauncher.launchQuery(
'${_userProvider.student?.school.city ?? ''} ${_userProvider.student?.school.name ?? ''}'); '${_userProvider.student?.school.city ?? ''} ${_userProvider.student?.school.name ?? ''}');
// if (Platform.isIOS &&
// (await MapLauncher.isMapAvailable(MapType.apple) ?? false)) {
// MapLauncher.showMarker(
// coords: Coords(0, 0),
// title:
// '${_userProvider.student?.school.city ?? ''} ${_userProvider.student?.school.name ?? ''}',
// mapType: MapType.apple,
// );
// } else if (Platform.isAndroid &&
// (await MapLauncher.isMapAvailable(MapType.google) ?? false)) {
// MapLauncher.showMarker(
// coords: Coords(0, 0),
// title:
// '${_userProvider.student?.school.city ?? ''} ${_userProvider.student?.school.name ?? ''}',
// mapType: MapType.google,
// );
// }
}, },
description: liveCard.nextLesson != null description: liveCard.nextLesson != null
? Text.rich( ? Text.rich(