File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples/internationalization/gen_l10n_example/lib
src/content/ui/accessibility-and-internationalization Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
3
3
// #docregion app-localizations-import
4
- import 'package:flutter_gen/gen_l10n /app_localizations.dart' ;
4
+ import 'l10n /app_localizations.dart' ;
5
5
// #enddocregion app-localizations-import
6
6
7
7
// #docregion localization-delegates-import
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ complete the following instructions:
266
266
267
267
6. Now, run `flutter pub get` or `flutter run` and codegen takes place automatically.
268
268
You should find generated files in the directory at the path you specified
269
- with the `arb -dir` or `output -dir` options .
269
+ with the `output -dir` option ( or `arb -dir`, if you don't specify `output-dir`) .
270
270
Alternatively, you can also run `flutter gen-l10n` to
271
271
generate the same files without running the app.
272
272
@@ -276,7 +276,7 @@ complete the following instructions:
276
276
277
277
<?code-excerpt "gen_l10n_example/lib/main.dart (app-localizations-import)"?>
278
278
` ` ` dart
279
- import 'package:flutter_gen/gen_l10n /app_localizations.dart';
279
+ import 'l10n /app_localizations.dart';
280
280
` ` `
281
281
282
282
<?code-excerpt "gen_l10n_example/lib/main.dart (material-app)"?>
You can’t perform that action at this time.
0 commit comments