added pagination in your tenders and some fixes
This commit is contained in:
@@ -42,7 +42,10 @@ class _YourTendersMobilePageState extends State<YourTendersMobilePage> {
|
||||
Expanded(
|
||||
child: Consumer<YourTendersViewModel>(
|
||||
builder: (context, viewModel, child) {
|
||||
if (viewModel.isLoading) {
|
||||
if (viewModel.isLoading &&
|
||||
(viewModel.data?.data?.tenders ?? []).isEmpty &&
|
||||
(viewModel.likedTendersData?.data?.feedback ?? [])
|
||||
.isEmpty) {
|
||||
return const Center(
|
||||
child: CircularProgressIndicator(
|
||||
color: AppColors.secondary50,
|
||||
|
||||
Reference in New Issue
Block a user