mirror of https://github.com/flutter/samples.git
Merge branch 'main' of https://github.com/flutter/samples
commit
2baa221cec
@ -1,6 +1,14 @@
|
||||
package com.example.material_3_demo
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
import android.os.Bundle
|
||||
import androidx.core.view.WindowCompat
|
||||
|
||||
class MainActivity: FlutterActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue