Localization changes #4
This commit is contained in:
@@ -22,7 +22,7 @@ class ColorThemeDialog extends StatelessWidget {
|
||||
),
|
||||
ListTile(
|
||||
leading: const CircleAvatar(backgroundColor: Colors.green),
|
||||
title: const Text('Green'),
|
||||
title: Text(AppLocalizations.of(context).green),
|
||||
onTap: () {
|
||||
context.read<ThemeCubit>().changeTheme(ThemeType.green);
|
||||
Navigator.pop(context);
|
||||
@@ -30,7 +30,7 @@ class ColorThemeDialog extends StatelessWidget {
|
||||
),
|
||||
ListTile(
|
||||
leading: const CircleAvatar(backgroundColor: Colors.orange),
|
||||
title: const Text('Orange'),
|
||||
title: Text(AppLocalizations.of(context).orange),
|
||||
onTap: () {
|
||||
context.read<ThemeCubit>().changeTheme(ThemeType.orange);
|
||||
Navigator.pop(context);
|
||||
|
Reference in New Issue
Block a user