Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Update to new android embedding v2 #213

Merged

Conversation

Renzo-Olivares
Copy link
Contributor

Fixes warning when doing flutter run
Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration to migrate your project.

Instructions to update outlined here: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects


This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@android:color/white</item>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this white the color of the splash screen when the android app launches? If so, can we make it black instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry just saw this, the normal theme is the background that shows up briefly when changing the device orientation, briefly after the LaunchTheme, or during activity restoration. So far I haven't been able to capture it. The splash screen is set to black in the LaunchTheme, should we also set this one to black?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think that makes sense

clocksmith pushed a commit to clocksmith/gallery that referenced this pull request Jul 23, 2020
@Renzo-Olivares Renzo-Olivares merged commit cfa788a into flutter:master Aug 6, 2020
@Renzo-Olivares Renzo-Olivares deleted the update-android-embedding-v2 branch August 6, 2020 16:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants