mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +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
|
||||
**/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),
|
||||
|
|
Loading…
Reference in a new issue