WIP: StatisticsView Rework #247

Draft
flixcoo wants to merge 42 commits from feature/193-statisticsview-rework into feature/180-Spielerprofile-implementieren
2 changed files with 3 additions and 3 deletions
Showing only changes of commit d82206319a - Show all commits

View File

@@ -25,7 +25,7 @@ String translateRulesetToString(Ruleset ruleset, BuildContext context) {
}
/// Translates a [AppColor] enum value to its corresponding localized string.
String translateGameColorToString(AppColor color, BuildContext context) {
String translateAppColorToString(AppColor color, BuildContext context) {
final loc = AppLocalizations.of(context);
switch (color) {
case AppColor.red:

View File

@@ -90,7 +90,7 @@ class _CreateGameViewState extends State<CreateGameView> {
AppColor.values.length,
(index) => (
AppColor.values[index],
translateGameColorToString(AppColor.values[index], context),
translateAppColorToString(AppColor.values[index], context),
),
);
@@ -507,7 +507,7 @@ class _CreateGameViewState extends State<CreateGameView> {
),
Padding(
padding: const EdgeInsets.only(right: 5),
child: Text(translateGameColorToString(selectedColor!, context)),
child: Text(translateAppColorToString(selectedColor!, context)),
),
Transform.rotate(
angle: pi / 2,