Skip to content

Black screen displayed briefly on iOS when app launches #10099

@gavindoughtie

Description

@gavindoughtie

Launch an iOS application with a light-colored launch screen storyboard and a light-colored home view. Note that a frame or two of total black is shown between the launch screen and the initial Flutter view.

This is my workaround for now, in the app delegate:

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    FlutterViewController *controller = (FlutterViewController*)self.window.rootViewController;
    controller.view.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions