fixes for Android transparency and add removeAsset method

This commit is contained in:
Nick Fisher
2022-07-11 19:12:49 +10:00
parent 84c27faa07
commit a8ef628316
10 changed files with 139 additions and 500 deletions

View File

@@ -20,3 +20,23 @@ iOS:
Extract and move both lib/ and include/ to ./ios
# Running
## Android
- MainActivity.kt must have the following:
```
class MainActivity: FlutterActivity() {
override fun getTransparencyMode(): TransparencyMode {
return TransparencyMode.transparent
}
}
```
and theme must have the following in `styles.xml`
```
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">@android:color/transparent</item>
</style>
```