CWA-177 | fixed UI bug in the settings text list row

This commit is contained in:
Oleksandr Sobol 2020-03-02 21:09:56 +02:00
parent ed31909694
commit 402b94a299

View file

@ -18,14 +18,23 @@ class SettingsTextListRow extends StatelessWidget {
color: Theme.of(context).accentTextTheme.headline.backgroundColor,
child: ListTile(
contentPadding: EdgeInsets.only(left: 20.0, right: 20.0),
title: Observer(
builder: (_) => Text(
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Flexible(
child: Observer(
builder: (_) => Text(
settingsStore.itemHeaders[title],
style: TextStyle(
fontSize: 16.0,
color: Theme.of(context).primaryTextTheme.title.color),
)),
trailing: widget,
fontSize: 16.0,
color: Theme.of(context).primaryTextTheme.title.color),
)),
),
Flexible(
child: widget
)
],
),
onTap: onTaped,
),
);