I'm following this doc to implement localization in my app. I run flutter build apk and it generates related localization classes. However, when I want to import AppLocalizations under lib, it does not automatically import it. So I manually write import 'package:flutter_gen/gen_l10n/app_localizations.dart'; to every file I'd like to use localization.
I was wondering if there's a way to make VSCode autoimport generated AppLocalizations class when I do CTRL+. since writing import each time is a pain.
l10n.yaml file
arb-dir: l10n
template-arb-file: app_tr.arb
output-localization-file: app_localizations.dart
Environment
- VSCode 1.55.1
- Ultimate Flutter Extension Pack