enable material components

This commit is contained in:
Fabian Freund
2024-04-07 14:57:01 +02:00
parent fb807ab9ea
commit 1a13ca0795
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -44,6 +44,10 @@ android {
versionName = flutterVersionName
}
dependencies {
implementation 'com.google.android.material:material:1.11.0'
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
@@ -12,7 +12,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
@@ -12,7 +12,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<style name="NormalTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>