In my App the user can change between dark and white theme at any time in the settings.
After restarting the app, the settings are loaded to evaluate if the user uses the dark mode. If so, I want to have a dark background color on the native android splash screen.
Is there a way to change the native android splash screen color during runtime - for the next start?
I've seen this question, but still no solution.
The problem is not to set the splash screen! I know this can be done by using this package or by simple steps in the android folder.
Related
Perhaps in the new version of Android, when you run the app, the app icon moves to the center of the mobile screen screen and becomes slightly larger and shows the native splash screen as the default. But this has a lot of problems.
I implemented it with flutter_launcher_icons, and white padding keeps attaching around the app icon, on the launch screen.
So I just took the old way of changing the ic_launcher icon and successfully removed the white padding. But the problem is that when I do flutte run --release instead of debug mode, white padding starts to stick again. I'm having a really hard time with this. Anyone know of this issue?
This might be an emulator only issue, no reproduction on physical devices so far
We have a Xamarin.Forms App for Android and iOS. The app supports dark and light theme and follows. Most of the colors are defined in styles using the AppThemeBinding of Xamarin.Forms.
We use Material Renderers and Xamarin.Forms 5.0.0.2337 (i.e. most current).
We use the Switch control for some settings. Cause there is a dark mode bug in Xamarin renderer for switch, the Android main style parent was changed from Theme.AppCompat.Light.DarkActionBar to Theme.AppCompat.DayNight.DarkActionBar as proposed as workaround.
Now I observe this issue in Android Emulators (cannot test on real device at the moment):
click an Entry or Editor, soft keyboard opens
make some keyboard input
close keyboard either by "finish" button or "back" button
the whole app (page, controls etc.) is rendered brighter now. example: page background was #121212 before keyboard was shown and is #2f2f2f after it was shown. sometimes it needs 2 or 3 tries to reproduce
by clicking in another entry, the app may be rendered correct again or may be not.
The issue leaves helpless cause I do not understand what is going on.
When I move my React native app to background irrespective on which screen I am on, it shows white screen instead of the screen I should be in? I am not talking about the white splash screen.
This issue happens only on android and not on iOS
https://preview.redd.it/yhalbullg3b61.jpg?width=720&format=pjpg&auto=webp&s=a690d3470b7923d8de64d38fa335d86257fd6612
I am using React Navigation. I am not even sure what code to post or where to look for debugging.
I also tried with release mode apk but the issue persists for android.
This was not React-Native specific issue. I have set FLAG_SECURE in android for one of my Native module. Removing it resolved this issue
https://flutter.dev/docs/development/ui/splash-screen/android-splash-screen
On this page, there are three types of splash themes mentioned
A. Launch theme
B. Normal theme
C. Flutter splash theme
Now i have read through it and tried implementing all of these, but can someone experienced enough tell me where all these three screens appear during the app launch?
P. S. :- There is a fourth type of splash screen that youtubers tutorial about, that splash screen appears as a first widget drawn by flutter so it's not really a splash screen. It's a first widget to be drawn.
Any help would be appreciated.
Splash screens are typically used by particularly large applications to notify the user that the program is in the process of loading. Nowadays, in mobile apps splash screen is common. Flutter docs mention a native way to implement a splash screen. This splash screen is white by default. You can see a white screen on the launch of the app.
https://flutter.dev/docs/development/ui/splash-screen/android-splash-screen
This document mentions steps to edit this white screen.
A - Launch Theme
The launch theme is displayed when the app is initializing. This is the very first thing seen on launching the app, even before our homepage is loaded.
B - Normal ThemeProvide the default theme for C-Flutter Splash Screen
C - Flutter Splash Screen
Each Flutter experience in an app requires a few moments to initialize the Dart isolate that runs the code. This means a user momentarily sees a blank screen until Flutter renders its first frame. This can be seen for a very brief moment after the splash screen disappears and also in some other situations mentioned in docs.
D- First widget as Splash Screen
I think this is not the proper way to implement a splash screen as per Flutter docs. But by displaying a widget as a splash screen it offers all the flexibility of flutter to design a custom splash screen, especially for beginners.
If you need to see the changes, follow the docs with implementing each splash screen with different colors or designs, so that you can identify the changes quickly.
In Visual Studio i created a blank application, when running on my device i get a full screen app.
I want a partial screen app that's transparent, that has some transparent buttons, for example, my phone resolution is 1080x1920, the app is 300x300, like a widget but it's NOT a widget, im not trying to create a widget, im trying to create an app that launches with the size of a widget? if that makes sense.
How do i approach/accomplish this?
Try using DialogActivity, that should work