Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to docs #122

Open
Mellie45 opened this issue Jul 19, 2024 · 0 comments
Open

Update to docs #122

Mellie45 opened this issue Jul 19, 2024 · 0 comments

Comments

@Mellie45
Copy link

Just a suggestion to save some pain on the initial set-up for intermediate developers like myself. The localizationsDelegates inside the MaterialApp needs to include both GlobalMaterialLocalizations.delegate, and GlobalWidgetsLocalizations.delegate. To access these, this import is needed: import 'package:flutter_localizations/flutter_localizations.dart'. Heres the problem. To access flutter_localizations, it needs to be imported into the pubspec file. But it's not a separate package so can't be found on pub.dev (I now know that it's part of the core dart language) But it still has to be imported like this: dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
It's taken me over an hour to figure this out, so maybe you could include this step in the set-up documentation to help others like me please.

Thanks for a great package. I'm looking forward to hooking it up now it's initialised!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant