Skip to content

Commit

Permalink
chore: copy new example part to main README
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Mar 3, 2021
1 parent 267dc12 commit 24bb58f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

```
Expand Down

0 comments on commit 24bb58f

Please sign in to comment.