From 24bb58faf06b8ea4f4fe1334faa834d06ea4779d Mon Sep 17 00:00:00 2001 From: Tien Do Nam Date: Wed, 3 Mar 2021 02:14:55 +0100 Subject: [PATCH] chore: copy new example part to main README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 75caf465..e3c1113a 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,19 @@ void initState() { } ``` +**Step 4a: Override 'supportedLocales'** + +```dart +MaterialApp( + localizationsDelegates: const [ + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ], + supportedLocales: LocaleSettings.supportedLocales, // <--- +) +``` + **Step 4b: iOS-only** ```