Skip to content

localeResolutionCallback override MaterialApp Locale #120

@EArminjon

Description

@EArminjon

Hello,

I'm facing an issue with the code below :

MaterialApp(
        debugShowCheckedModeBanner: false,
        locale: ui.window.locale, // it is equal to String("fr")
        localizationsDelegates: [
          S.delegate,
        ],
        localeResolutionCallback: S.delegate.resolution(fallback: const Locale('en', '')),
        supportedLocales: S.delegate.supportedLocales,
);

localeResolutionCallback is, as I understand, a callback when no local is found.
The problem is the following : localeResolutionCallback is always call and override locale: ui.window.locale...

Can you help me ?

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