Skip to content

Commit 42dc8f1

Browse files
Update snippets.json (#49)
There's currently a bug in Flutter that it can't auto-import the l10n auto-generated app_localizations package, so it would be good to have a snippet for that
1 parent ea9f4c6 commit 42dc8f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

snippets/snippets.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@
388388
"body": "import 'package:flutter_test/flutter_test.dart';",
389389
"description": "Import flutter_test package"
390390
},
391+
"app_localizations Package": {
392+
"prefix": "importAL",
393+
"body": "import 'package:flutter_gen/gen_l10n/app_localizations.dart';",
394+
"description": "Import app_localizations package"
395+
},
391396
"Material App": {
392397
"prefix": "mateapp",
393398
"description": "Create a MaterialApp",

0 commit comments

Comments
 (0)