diff --git a/it0_app/lib/features/profile/presentation/pages/profile_page.dart b/it0_app/lib/features/profile/presentation/pages/profile_page.dart index ae60646..e434a81 100644 --- a/it0_app/lib/features/profile/presentation/pages/profile_page.dart +++ b/it0_app/lib/features/profile/presentation/pages/profile_page.dart @@ -961,31 +961,39 @@ class _SettingsRow extends StatelessWidget { @override Widget build(BuildContext context) { - return ListTile( - leading: Container( - width: 32, - height: 32, - decoration: BoxDecoration( - color: iconBg, - borderRadius: BorderRadius.circular(8), - ), - child: Icon(icon, color: Colors.white, size: 18), - ), - title: Text(title), - trailing: Row( - mainAxisSize: MainAxisSize.min, + final row = Padding( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), + child: Row( children: [ - if (trailing != null) Flexible(child: trailing!), + Container( + width: 32, + height: 32, + decoration: BoxDecoration( + color: iconBg, + borderRadius: BorderRadius.circular(8), + ), + child: Icon(icon, color: Colors.white, size: 18), + ), + const SizedBox(width: 16), + Expanded( + child: Text( + title, + style: Theme.of(context).textTheme.bodyMedium, + overflow: TextOverflow.ellipsis, + ), + ), + if (trailing != null) ...[const SizedBox(width: 8), trailing!], if (onTap != null) ...[ const SizedBox(width: 4), Icon(Icons.chevron_right, - size: 20, - color: Theme.of(context).hintColor), + size: 20, color: Theme.of(context).hintColor), ], ], ), - onTap: onTap, ); + return onTap != null + ? InkWell(onTap: onTap, child: row) + : row; } }