fix: Update employee name and designation display to allow for multiline text

This commit is contained in:
Vaibhav Surve 2025-06-06 12:23:12 +05:30
parent 3926e762e5
commit 905b3e32c5

View File

@ -274,20 +274,23 @@ class _AttendanceScreenState extends State<AttendanceScreen> with UIMixin {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
Wrap(
crossAxisAlignment:
WrapCrossAlignment.center,
spacing:
6, // spacing between name and designation
children: [
MyText.bodyMedium(
employee.name,
fontWeight: 600,
overflow: TextOverflow.ellipsis,
maxLines: 1,
overflow: TextOverflow.visible,
maxLines: null,
),
MySpacing.width(6),
MyText.bodySmall(
'(${employee.designation})',
fontWeight: 600,
overflow: TextOverflow.ellipsis,
maxLines: 1,
overflow: TextOverflow.visible,
maxLines: null,
color: Colors.grey[700],
),
],