Skip to content

Await not working #234

@Dev-E-Mobile

Description

@Dev-E-Mobile

Hi @droibit @petermnt @davidmigloz @Gurkengewuerz

When utilizing custom tabs with a URL, it doesn't wait until it's finished rather than executing next methods.

await launchUrl( Uri.parse(url), prefersDeepLink: true, customTabsOptions: CustomTabsOptions( colorSchemes: CustomTabsColorSchemes.defaults( toolbarColor: Colors.white, ), shareState: CustomTabsShareState.off, ), safariVCOptions: const SafariViewControllerOptions( preferredBarTintColor: Colors.white, preferredControlTintColor: Colors.white, ), ); await storeTokens();

storeTokens()async{
await storevalues with SharedPrefrences
}

After calling launchurl, the storeTokens function is called, but must wait for it to finish.

@droibit
have a look at this issue

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