Skip to content

Error: Attempt to present which is already presenting #117

@desmeit

Description

@desmeit

I builded a native splashViewController with this tutorial:

https://medium.com/@turkergurel19/native-animated-splash-screen-with-lottie-in-flutter-21761532813b

If I try to open the MFMailComposeViewController with this package I get the following error:

Attempt to present <MFMailComposeViewController: 0x1508ed800> on <Runner.SplashViewController: 0x147f131c0> (from <Runner.SplashViewController: 0x147f131c0>) which is already presenting <FlutterViewController: 0x14a25f800>.

How could I prevent this?

To change the rootController with appDelegate.window?.rootViewController = flutterViewController is not possible because I get a black blinking between the views. present is working better.

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions