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.
|
/// 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);
|
final loc = AppLocalizations.of(context);
|
||||||
switch (color) {
|
switch (color) {
|
||||||
case AppColor.red:
|
case AppColor.red:
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class _CreateGameViewState extends State<CreateGameView> {
|
|||||||
AppColor.values.length,
|
AppColor.values.length,
|
||||||
(index) => (
|
(index) => (
|
||||||
AppColor.values[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(
|
||||||
padding: const EdgeInsets.only(right: 5),
|
padding: const EdgeInsets.only(right: 5),
|
||||||
child: Text(translateGameColorToString(selectedColor!, context)),
|
child: Text(translateAppColorToString(selectedColor!, context)),
|
||||||
),
|
),
|
||||||
Transform.rotate(
|
Transform.rotate(
|
||||||
angle: pi / 2,
|
angle: pi / 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user