Last active
September 2, 2022 21:41
-
-
Save amendezcabrera/12b3b13564d5cecc1ddb599ad9864013 to your computer and use it in GitHub Desktop.
Setting default locale in Flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies: [flutter_localizations](https://docs.flutter.dev/development/accessibility-and-localization/internationalization) (Official) | |
MaterialApp( | |
localizationsDelegates: AppLocalizations.localizationsDelegates, | |
supportedLocales: AppLocalizations.supportedLocales, | |
title: ref.watch(currentStallProvider)?.place?.name ?? '', | |
theme: MainTheme.theme, | |
home: MyHomePage( | |
title: ref.watch(currentStallProvider)?.place?.name ?? '')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment