Verschiedene Regelsätze implementieren #194

Merged
flixcoo merged 46 commits from feature/132-verschiedene-regelsaetze-implementieren into development 2026-04-24 10:31:36 +00:00
Showing only changes of commit 86f2ba01e5 - Show all commits

View File

@@ -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;
} }
} }