Skip to content

Commit 1464583

Browse files
committed
Fix edge-to-edge setup for FlutterActivity
1 parent adc5176 commit 1464583

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

android/app/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ android {
5757
}
5858

5959
dependencies {
60-
implementation("androidx.activity:activity-ktx:1.9.3")
6160
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
6261
}
6362

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package com.peerchemist.evmrider
22

33
import android.os.Bundle
4-
import androidx.activity.enableEdgeToEdge
4+
import androidx.core.view.WindowCompat
55
import io.flutter.embedding.android.FlutterActivity
66

77
class MainActivity : FlutterActivity() {
88
override fun onCreate(savedInstanceState: Bundle?) {
9-
enableEdgeToEdge()
109
super.onCreate(savedInstanceState)
10+
WindowCompat.setDecorFitsSystemWindows(window, false)
1111
}
1212
}

0 commit comments

Comments
 (0)