fix: Replace Row with Wrap for employee name and job role display to support multiline text

This commit is contained in:
Vaibhav Surve 2025-06-06 12:27:52 +05:30
parent 0b8a5364ae
commit 516a779626

View File

@ -268,16 +268,21 @@ class _EmployeesScreenState extends State<EmployeesScreen> with UIMixin {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
spacing: 6,
children: [
MyText.titleMedium(
employee.name,
fontWeight: 600,
overflow: TextOverflow.visible,
maxLines: null,
),
const SizedBox(width: 6),
MyText.titleSmall(
'(${employee.jobRole})',
fontWeight: 400,
overflow: TextOverflow.visible,
maxLines: null,
),
],
),