fix: Update employee name and designation display to allow for multiline text
This commit is contained in:
parent
3926e762e5
commit
905b3e32c5
@ -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],
|
||||
),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user