mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 02:34:59 +00:00
Merge pull request #14 from cake-tech/CWA-157-highlight-current-language-in-settings
CWA-157 | highlighted current language in change language page
This commit is contained in:
commit
a751967230
1 changed files with 4 additions and 1 deletions
|
@ -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