Updated localization declaration
This commit is contained in:
@@ -36,7 +36,6 @@ class GroupDetailView extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _GroupDetailViewState extends State<GroupDetailView> {
|
class _GroupDetailViewState extends State<GroupDetailView> {
|
||||||
late final AppLocalizations loc;
|
|
||||||
late final AppDatabase db;
|
late final AppDatabase db;
|
||||||
bool isLoading = true;
|
bool isLoading = true;
|
||||||
late Group _group;
|
late Group _group;
|
||||||
@@ -52,12 +51,13 @@ class _GroupDetailViewState extends State<GroupDetailView> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
_group = widget.group;
|
_group = widget.group;
|
||||||
db = Provider.of<AppDatabase>(context, listen: false);
|
db = Provider.of<AppDatabase>(context, listen: false);
|
||||||
loc = AppLocalizations.of(context);
|
|
||||||
_loadStatistics();
|
_loadStatistics();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final loc = AppLocalizations.of(context);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: CustomTheme.backgroundColor,
|
backgroundColor: CustomTheme.backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
@@ -288,6 +288,7 @@ class _GroupDetailViewState extends State<GroupDetailView> {
|
|||||||
case 1:
|
case 1:
|
||||||
return topPlayers.first.key.name;
|
return topPlayers.first.key.name;
|
||||||
default:
|
default:
|
||||||
|
final loc = AppLocalizations.of(context);
|
||||||
return loc.tie;
|
return loc.tie;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user