Refactor loading animation in LoadingComponent to use SingleChildScrollView for better layout handling
This commit is contained in:
parent
fb2823c340
commit
eeddee5168
@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user