Open omar-khaium opened 1 year ago
need intl package in pubspec
clear && flutter clean && clear && flutter gen-l10n && flutter pub get&& clear && flutter build appbundle && clear && open build/app/outputs/bundle/release
"flutter gen-l10n " command will be required to generate l10n files and configs
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; //------ import this package on the file you need to implement language feature
onGenerateTitle: (context) => AppLocalizations.of(context).appName, localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, locale: const Locale("en"),
use these 4 lines in main.dart => MaterialApp
flutter: generate: true