PSDK-1162 - Правка верстки при длинном значении ячейки

This commit is contained in:
Elena Nazarova
2023-12-14 19:14:30 +03:00
committed by Jura Shikin
parent 5c3385bc6b
commit 5c93e4a032
@@ -12,22 +12,32 @@ class OptionsView extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoListTile(
key: key,
onTap: () { _showAlertDialog(context);},
trailing: Row(
children: [
if (selectedIndex != null)
Text(options[selectedIndex!].title,
style: const TextStyle(
decoration: TextDecoration.none,
fontSize: 17,
color: CupertinoColors.systemGrey,
fontWeight: FontWeight.w400)),
const Icon(CupertinoIcons.chevron_forward,
color: CupertinoColors.systemGrey2)
],
),
title: Text(title, style: const TextStyle(decoration: TextDecoration.none, fontSize: 17)));
key: key,
onTap: () { _showAlertDialog(context);},
title: Row(
children: [
Text(title, style: const TextStyle(decoration: TextDecoration.none, fontSize: 17)),
const SizedBox(width: 30),
Expanded(
child: Align(
alignment: Alignment.centerRight,
child: Text(options[selectedIndex ?? 0].title,
style: const TextStyle(
decoration: TextDecoration.none,
fontSize: 17,
color: CupertinoColors.systemGrey,
fontWeight: FontWeight.w400,
),
maxLines: 5,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.right,
),
)
),
const Icon(CupertinoIcons.chevron_forward, color: CupertinoColors.systemGrey2)
]
)
);
}
void _showAlertDialog(BuildContext context) {