changes
This commit is contained in:
@@ -31,24 +31,28 @@ class MobileHomePage extends StatelessWidget {
|
||||
if (homeViewModel.errorMessage != null) {
|
||||
return Center(child: Text(homeViewModel.errorMessage!));
|
||||
}
|
||||
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SizedBox(height: 18.0.h()),
|
||||
NotificationCard(),
|
||||
SizedBox(height: 32.0.h()),
|
||||
_progressBarsRow(homeViewModel.homeResponse!),
|
||||
SizedBox(height: 32.0.h()),
|
||||
_firstTenderCardsRow(context, homeViewModel.homeResponse!),
|
||||
SizedBox(height: 8.0.h()),
|
||||
_secondTenderCardsRow(homeViewModel.homeResponse!),
|
||||
SizedBox(height: 40.0.h()),
|
||||
_yourTenderText(),
|
||||
_bottomListView(homeViewModel.recommendedTendersResponse!),
|
||||
],
|
||||
),
|
||||
if (homeViewModel.homeResponse != null) {
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SizedBox(height: 18.0.h()),
|
||||
NotificationCard(),
|
||||
SizedBox(height: 32.0.h()),
|
||||
_progressBarsRow(homeViewModel.homeResponse!),
|
||||
SizedBox(height: 32.0.h()),
|
||||
_firstTenderCardsRow(context, homeViewModel.homeResponse!),
|
||||
SizedBox(height: 8.0.h()),
|
||||
_secondTenderCardsRow(homeViewModel.homeResponse!),
|
||||
SizedBox(height: 40.0.h()),
|
||||
_yourTenderText(),
|
||||
_bottomListView(homeViewModel.recommendedTendersResponse!),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
return const Center(
|
||||
child: CircularProgressIndicator(color: AppColors.secondary50),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
@@ -86,7 +86,7 @@ class TendersListItem extends StatelessWidget {
|
||||
child: Text(
|
||||
tender.description!,
|
||||
textAlign: TextAlign.left,
|
||||
maxLines: 6,
|
||||
maxLines: 4,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 14.0.sp(),
|
||||
@@ -95,7 +95,8 @@ class TendersListItem extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 18.0.h()),
|
||||
Spacer(),
|
||||
// SizedBox(height: 18.0.h()),
|
||||
TenderCardProgressBar(),
|
||||
SizedBox(height: 15.0.h()),
|
||||
|
||||
|
||||
@@ -102,9 +102,23 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
|
||||
),
|
||||
child: const ThemeToggle(),
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () => viewModel.logout(),
|
||||
child: const Text('Logout'),
|
||||
// ElevatedButton(
|
||||
// onPressed: () => viewModel.logout(),
|
||||
// child: const Text('Logout'),
|
||||
// ),
|
||||
SizedBox(height: 24.0.h()),
|
||||
InkWell(
|
||||
onTap: () => viewModel.logout(),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: 45.0.h(),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(color: AppColors.borderColor),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Text('Logout'),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -161,6 +161,7 @@ class TenderCard extends StatelessWidget {
|
||||
Widget _tenderDescription() {
|
||||
return Text(
|
||||
tender.description ?? '',
|
||||
maxLines: 7,
|
||||
style: TextStyle(
|
||||
color: AppColors.grey70,
|
||||
fontSize: 16.0.sp(),
|
||||
|
||||
Reference in New Issue
Block a user