mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
CWA-157 | highlighted current language in change language page
This commit is contained in:
parent
9b76880e82
commit
1916a1baa0
2 changed files with 6 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -88,3 +88,5 @@ android/key.properties
|
||||||
|
|
||||||
**/tool/.secrets-prod.json
|
**/tool/.secrets-prod.json
|
||||||
**/lib/.secrets.g.dart
|
**/lib/.secrets.g.dart
|
||||||
|
|
||||||
|
**/lib/generated/i18n.dart
|
|
@ -29,6 +29,9 @@ class ChangeLanguage extends BasePage {
|
||||||
final settingsStore = Provider.of<SettingsStore>(context);
|
final settingsStore = Provider.of<SettingsStore>(context);
|
||||||
final currentLanguage = Provider.of<Language>(context);
|
final currentLanguage = Provider.of<Language>(context);
|
||||||
|
|
||||||
|
final currentColor = Theme.of(context).selectedRowColor;
|
||||||
|
final notCurrentColor = Theme.of(context).accentTextTheme.subhead.backgroundColor;
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
padding: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
|
@ -41,7 +44,7 @@ class ChangeLanguage extends BasePage {
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
margin: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
margin: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
||||||
color: Theme.of(context).accentTextTheme.subhead.backgroundColor,
|
color: isCurrent ? currentColor : notCurrentColor,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
_languages.values.elementAt(index),
|
_languages.values.elementAt(index),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue