Refactor loading animation in LoadingComponent to use SingleChildScrollView for better layout handling

This commit is contained in:
Vaibhav Surve 2025-05-09 10:49:34 +05:30
parent fb2823c340
commit eeddee5168
2 changed files with 83 additions and 77 deletions

View File

@ -78,7 +78,8 @@ class _LoadingAnimation extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
return SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
@ -100,6 +101,7 @@ class _LoadingAnimation extends StatelessWidget {
size: 50,
),
],
),
);
}
}

View File

@ -72,7 +72,8 @@ class _EmployeeScreenState extends State<EmployeeScreen> with UIMixin {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
Expanded(
child: Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.black,
@ -119,7 +120,7 @@ class _EmployeeScreenState extends State<EmployeeScreen> with UIMixin {
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 12.0, vertical: 8.0),
child: MyText.bodySmall(
child: Text(
employeesScreenController.selectedProjectId ==
null
? 'All Employees'
@ -129,7 +130,10 @@ class _EmployeeScreenState extends State<EmployeeScreen> with UIMixin {
employeesScreenController
.selectedProjectId)
.name,
fontWeight: 600,
overflow: TextOverflow
.ellipsis,
style: TextStyle(fontWeight: FontWeight.w600),
),
),
),
),