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

View File

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