flutter_sheet_localization
flutter_sheet_localization copied to clipboard
The getter 'localizations' isn't defined for the type 'BuildContext'.
@override
Widget build(BuildContext context) {
final labels = context.localizations;
return Scaffold(
appBar: AppBar(
title: Text('HomeScreen'),
centerTitle: true,
),
body: Text('HomeScreen'),
}
same here
final labels = Localizations.of<AppLocalizationsData>(context, AppLocalizationsData);
You can try the above