fixed safe area

This commit is contained in:
amirrezaghabeli
2025-09-27 08:55:57 +03:30
parent e432853478
commit ac57392919
3 changed files with 46 additions and 46 deletions
+21 -21
View File
@@ -18,23 +18,23 @@ class MobileHomePage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: tenderMobileAppBar(title: HomeStrings.home),
body: Consumer<HomeViewModel>(
builder: (context, homeViewModel, child) {
if (homeViewModel.isLoading) {
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
}
body: SafeArea(
child: Consumer<HomeViewModel>(
builder: (context, homeViewModel, child) {
if (homeViewModel.isLoading) {
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
}
if (homeViewModel.errorMessage != null) {
return Center(child: Text(homeViewModel.errorMessage!));
}
if (homeViewModel.errorMessage != null) {
return Center(child: Text(homeViewModel.errorMessage!));
}
if (homeViewModel.tenderApprovalsStateResponse != null &&
homeViewModel.data != null &&
homeViewModel.feedbackStats != null) {
return SafeArea(
child: SingleChildScrollView(
if (homeViewModel.tenderApprovalsStateResponse != null &&
homeViewModel.data != null &&
homeViewModel.feedbackStats != null) {
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -54,13 +54,13 @@ class MobileHomePage extends StatelessWidget {
_bottomListView(homeViewModel),
],
),
),
);
}
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
}
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
},
},
),
),
);
}