CWA-177 | fixed UI bug in the settings text list row
Oleksandr Sobol committed
Mar 2, 2020 at 21:09 UTC
402b94a299145f4b38f2954202dec57ae1f23d78
1 file changed
+15
-6
lib/src/screens/settings/widgets/settings_text_list_row.dart
+15
-6
@@ -18,14 +18,23 @@ class SettingsTextListRow extends StatelessWidget {
18
color: Theme.of(context).accentTextTheme.headline.backgroundColor,
19
child: ListTile(
20
contentPadding: EdgeInsets.only(left: 20.0, right: 20.0),
21
- title: Observer(
22
- builder: (_) => Text(
21
+ title: Row(
22
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
23
+ children: <Widget>[
24
+ Flexible(
25
+ child: Observer(
26
+ builder: (_) => Text(
27
settingsStore.itemHeaders[title],
28
style: TextStyle(
25
- fontSize: 16.0,
26
- color: Theme.of(context).primaryTextTheme.title.color),
27
- )),
28
- trailing: widget,
29
+ fontSize: 16.0,
30
+ color: Theme.of(context).primaryTextTheme.title.color),
31
+ )),
32
+ ),
33
+ Flexible(
34
+ child: widget
35
+ )
36
+ ],
37
+ ),
38
onTap: onTaped,
39
),
40
);