Skip to content

Commit

Permalink
update readme (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
esskar committed May 22, 2019
1 parent 58c84d7 commit 39f0b78
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,28 @@ If you want to change the automatic behaviour, you can change the text direction
ltr: []
}

## Known problems

## Troubleshooting

### iOS Simulator

There are still some [unresolved issues][2] in Flutter when trying to use localization with the iOS
simulators.

[1]: https://marketplace.visualstudio.com/items?itemName=esskar.vscode-flutter-i18n-json
[2]: https://github.com/flutter/flutter/issues/14128
[2]: https://github.com/flutter/flutter/issues/14128

### No MaterialLocalizations found.

Global widgets may throw exceptions informaing you that they cannot find any MaterialLocalizations (`No MaterialLocalizations found.`). You need to install them manually and add their delegates to your localizationsDelegates.

dev_dependencies:
flutter_localizations:
sdk: flutter

return new MaterialApp(
localizationsDelegates: [
i18n,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
...

0 comments on commit 39f0b78

Please sign in to comment.