mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
CWA-157 | highlighted current language in change language page
This commit is contained in:
@@ -88,3 +88,5 @@ android/key.properties
|
||||
|
||||
**/tool/.secrets-prod.json
|
||||
**/lib/.secrets.g.dart
|
||||
|
||||
**/lib/generated/i18n.dart
|
||||
@@ -29,6 +29,9 @@ class ChangeLanguage extends BasePage {
|
||||
final settingsStore = Provider.of<SettingsStore>(context);
|
||||
final currentLanguage = Provider.of<Language>(context);
|
||||
|
||||
final currentColor = Theme.of(context).selectedRowColor;
|
||||
final notCurrentColor = Theme.of(context).accentTextTheme.subhead.backgroundColor;
|
||||
|
||||
return Container(
|
||||
padding: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
||||
child: ListView.builder(
|
||||
@@ -41,7 +44,7 @@ class ChangeLanguage extends BasePage {
|
||||
|
||||
return Container(
|
||||
margin: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
||||
color: Theme.of(context).accentTextTheme.subhead.backgroundColor,
|
||||
color: isCurrent ? currentColor : notCurrentColor,
|
||||
child: ListTile(
|
||||
title: Text(
|
||||
_languages.values.elementAt(index),
|
||||
|
||||
Reference in New Issue
Block a user