File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
material_3_demo/android/app/src/main
kotlin/com/example/material_3_demo Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11package com.example.material_3_demo
22
33import io.flutter.embedding.android.FlutterActivity
4+ import android.os.Bundle
5+ import androidx.core.view.WindowCompat
46
57class MainActivity : FlutterActivity () {
8+
9+ override fun onCreate (savedInstanceState : Bundle ? ) {
10+ super .onCreate(savedInstanceState)
11+ WindowCompat .setDecorFitsSystemWindows(window, false )
12+ }
13+
614}
Original file line number Diff line number Diff line change 1414 This Theme is only used starting with V2 of Flutter's Android embedding. -->
1515 <style name =" NormalTheme" parent =" @android:style/Theme.Light.NoTitleBar" >
1616 <item name =" android:windowBackground" >?android:colorBackground</item >
17+ <!-- values-v29/themes.xml -->
18+ <item name =" android:navigationBarColor" >
19+ @android:color/transparent
20+ </item >
21+
22+ <!-- Optional: set to transparent if your app is drawing behind the status bar. -->
23+ <item name =" android:statusBarColor" >
24+ @android:color/transparent
25+ </item >
26+
27+ <!-- Optional: set for a light status bar with dark content. -->
28+ <item name =" android:windowLightStatusBar" >
29+ true
30+ </item >
1731 </style >
1832</resources >
You can’t perform that action at this time.
0 commit comments