Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ android {
isCoreLibraryDesugaringEnabled = true
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
}
}

defaultConfig {
applicationId = "com.ishankumar.maizebus"
Expand Down
2 changes: 1 addition & 1 deletion android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
id("com.google.gms.google-services") version("4.3.15") apply false
// END: FlutterFire Configuration

id("org.jetbrains.kotlin.android") version "2.1.0" apply false
id("org.jetbrains.kotlin.android") version "2.3.0" apply false
}

include(":app")
6 changes: 6 additions & 0 deletions lib/screens/map_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ class _MaizeBusCoreState extends State<MaizeBusCore> {
content: Text(startupData.persistantMessage),
);
}


// loading all this data in parallel
await Future.wait([
Expand Down Expand Up @@ -1080,6 +1081,7 @@ class _MaizeBusCoreState extends State<MaizeBusCore> {

void _onMapCreated(GoogleMapController controller) {
_mapController = controller;
_centerOnLocation(true);
}

void _onCameraMove(CameraPosition position) async {
Expand Down Expand Up @@ -1921,6 +1923,10 @@ class _MaizeBusCoreState extends State<MaizeBusCore> {
);
return null;
}
else {
//Center map once right after user grants location permissions
_centerOnLocation(true);
}
}

if (permission == LocationPermission.deniedForever) {
Expand Down