Renamed GameColor -> AppColor
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user