Flicker issue query:
Conditions:
- Install the app from Testflight/Playstore
- Open it directly from Testflight/Playstore for the first time which gives output like this
Note: On next launches it flickers time gets smaller in terms of white screen delay.
Framework used: Flutter => Using latest version of flutter
Implementation:
To avoid the initial white screen issue I've added the launch image in LaunchScree.storyboard with appropriate sizes. But still, it flickers while transitioning between Native engine to Flutter engine.
Requirements:
We need a splash screen at the flutter engine to request initial data from the server to present future screens without loaders.
Main function code
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await getServices();
await FlutterLibphonenumber().init();
await Sentry.init((options) {
options.dsn = SENTRY_DSN;
}, appRunner: initApp);
}
void initApp() {
runApp(
EasyLocalization(
child: YieldTrustApp(StringResource.appTitle),
path: "assets/langs",
supportedLocales: [
const Locale('en', 'US'), // English
],
fallbackLocale: const Locale('en', 'US'),
),
);
}
Is it possible this issue can happen because of async main function?
