CWA-157 | highlighted current language in change language page

This commit is contained in:
Oleksandr Sobol 2020-01-10 17:46:43 +02:00
parent 9b76880e82
commit 1916a1baa0
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View file

@ -88,3 +88,5 @@ android/key.properties
**/tool/.secrets-prod.json
**/lib/.secrets.g.dart
**/lib/generated/i18n.dart

View file

@ -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),