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(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Wrap(
|
||||||
|
crossAxisAlignment:
|
||||||
|
WrapCrossAlignment.center,
|
||||||
|
spacing:
|
||||||
|
6, // spacing between name and designation
|
||||||
children: [
|
children: [
|
||||||
MyText.bodyMedium(
|
MyText.bodyMedium(
|
||||||
employee.name,
|
employee.name,
|
||||||
fontWeight: 600,
|
fontWeight: 600,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.visible,
|
||||||
maxLines: 1,
|
maxLines: null,
|
||||||
),
|
),
|
||||||
MySpacing.width(6),
|
|
||||||
MyText.bodySmall(
|
MyText.bodySmall(
|
||||||
'(${employee.designation})',
|
'(${employee.designation})',
|
||||||
fontWeight: 600,
|
fontWeight: 600,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.visible,
|
||||||
maxLines: 1,
|
maxLines: null,
|
||||||
color: Colors.grey[700],
|
color: Colors.grey[700],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user