Update dependencies and enhance tender approval status handling
- Updated `pubspec.lock` to reflect new versions for several packages, including `async`, `fake_async`, `leak_tracker`, and `vm_service`. - Modified `TenderApprovalStatus` enum to include a new status `approved`. - Updated routing for `YourTendersRouteData` to accept a status parameter and pass it to the `YourTendersScreen`. - Adjusted API calls and view models to utilize the new status handling, ensuring proper filtering and display of tender data based on approval status. - Enhanced filter dialog to support new status options and improved user feedback in the UI for submitted and approved tenders.
This commit is contained in:
@@ -8,6 +8,7 @@ import 'package:tm_app/data/services/model/tender_approvals_stats_response/tende
|
||||
import 'package:tm_app/view_models/home_view_model.dart';
|
||||
import 'package:tm_app/views/shared/tender_app_bar.dart';
|
||||
|
||||
import '../../../core/constants/tender_approval_status.dart';
|
||||
import '../strings/home_strings.dart';
|
||||
import '../widgets.dart';
|
||||
|
||||
@@ -108,7 +109,9 @@ class MobileHomePage extends StatelessWidget {
|
||||
textColor: AppColors.mainBlue,
|
||||
enableTap: true,
|
||||
onTap: () {
|
||||
const YourTendersRouteData().push(context);
|
||||
YourTendersRouteData(
|
||||
status: TenderApprovalStatus.submitted.value,
|
||||
).push(context);
|
||||
},
|
||||
),
|
||||
TenderCard(
|
||||
@@ -120,7 +123,9 @@ class MobileHomePage extends StatelessWidget {
|
||||
textColor: AppColors.jellyBean,
|
||||
enableTap: true,
|
||||
onTap: () {
|
||||
const YourTendersRouteData().push(context);
|
||||
YourTendersRouteData(
|
||||
status: TenderApprovalStatus.approved.value,
|
||||
).push(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user