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
|
@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,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user