Merge pull request 'fixed rest of the bugs' (#193) from bug_fix into main
Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/193
This commit is contained in:
@@ -94,13 +94,7 @@ class TendersViewModel with ChangeNotifier {
|
|||||||
// Clear data when status changes
|
// Clear data when status changes
|
||||||
_clearAllData();
|
_clearAllData();
|
||||||
selectedSort = sort;
|
selectedSort = sort;
|
||||||
if (sort == TendersStrings.lessBudget) {
|
if (sort == TendersStrings.minimumTime) {
|
||||||
sortBy = 'estimated_value';
|
|
||||||
sortOrder = 'asc';
|
|
||||||
} else if (sort == TendersStrings.moreBudget) {
|
|
||||||
sortBy = 'estimated_value';
|
|
||||||
sortOrder = 'desc';
|
|
||||||
} else if (sort == TendersStrings.minimumTime) {
|
|
||||||
sortBy = 'submission_deadline';
|
sortBy = 'submission_deadline';
|
||||||
sortOrder = 'asc';
|
sortOrder = 'asc';
|
||||||
} else if (sort == TendersStrings.mostOfTheTime) {
|
} else if (sort == TendersStrings.mostOfTheTime) {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class TenderDetailsStrings {
|
|||||||
static const String tenderNoExperience =
|
static const String tenderNoExperience =
|
||||||
'No experience in e-platform development';
|
'No experience in e-platform development';
|
||||||
static const String tenderSubmitButton = 'Submit';
|
static const String tenderSubmitButton = 'Submit';
|
||||||
|
static const String tenderAcceptButton = 'Accept';
|
||||||
static const String tenderRejectButton = 'Reject';
|
static const String tenderRejectButton = 'Reject';
|
||||||
static const String tenderClientExample =
|
static const String tenderClientExample =
|
||||||
'Procurement Notice Procurement Notice';
|
'Procurement Notice Procurement Notice';
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class TenderDetailActions extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
: BaseButton(
|
: BaseButton(
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
text: TenderDetailsStrings.tenderSubmitButton,
|
text: TenderDetailsStrings.tenderAcceptButton,
|
||||||
backgroundColor: AppColors.primary30,
|
backgroundColor: AppColors.primary30,
|
||||||
textColor: AppColors.mainBlue,
|
textColor: AppColors.mainBlue,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@@ -161,7 +161,7 @@ class TenderDetailActions extends StatelessWidget {
|
|||||||
return viewModel.isSubmitApprovalLoading
|
return viewModel.isSubmitApprovalLoading
|
||||||
? BaseButton(
|
? BaseButton(
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
text: TenderDetailsStrings.tenderSubmitButton,
|
text: TenderDetailsStrings.tenderAcceptButton,
|
||||||
backgroundColor: AppColors.lightBlue,
|
backgroundColor: AppColors.lightBlue,
|
||||||
textColor: AppColors.mainBlue,
|
textColor: AppColors.mainBlue,
|
||||||
onPressed: () {},
|
onPressed: () {},
|
||||||
@@ -169,7 +169,7 @@ class TenderDetailActions extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
: BaseButton(
|
: BaseButton(
|
||||||
isEnabled: true,
|
isEnabled: true,
|
||||||
text: TenderDetailsStrings.tenderSubmitButton,
|
text: TenderDetailsStrings.tenderAcceptButton,
|
||||||
backgroundColor: AppColors.lightBlue,
|
backgroundColor: AppColors.lightBlue,
|
||||||
textColor: AppColors.mainBlue,
|
textColor: AppColors.mainBlue,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ class _ActionButtons extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
text: 'Filter',
|
text: TendersStrings.filter,
|
||||||
icon: AssetsManager.filter,
|
icon: AssetsManager.filter,
|
||||||
iconColor: AppColors.textBlue,
|
iconColor: AppColors.textBlue,
|
||||||
backgroundColor: AppColors.primary2,
|
backgroundColor: AppColors.primary2,
|
||||||
@@ -236,7 +236,7 @@ class _ActionButtons extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
text: 'Sort',
|
text: TendersStrings.sort,
|
||||||
icon: AssetsManager.sort,
|
icon: AssetsManager.sort,
|
||||||
iconColor: AppColors.textBlue,
|
iconColor: AppColors.textBlue,
|
||||||
backgroundColor: AppColors.primary2,
|
backgroundColor: AppColors.primary2,
|
||||||
|
|||||||
@@ -25,6 +25,4 @@ class TendersStrings {
|
|||||||
static const String sort = 'Sort';
|
static const String sort = 'Sort';
|
||||||
static const String mostOfTheTime = 'Most of the time';
|
static const String mostOfTheTime = 'Most of the time';
|
||||||
static const String minimumTime = 'Minimum time';
|
static const String minimumTime = 'Minimum time';
|
||||||
static const String lessBudget = 'Less budget';
|
|
||||||
static const String moreBudget = 'More budget';
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,8 +55,6 @@ class TendersSortDialog extends StatelessWidget {
|
|||||||
...[
|
...[
|
||||||
TendersStrings.minimumTime,
|
TendersStrings.minimumTime,
|
||||||
TendersStrings.mostOfTheTime,
|
TendersStrings.mostOfTheTime,
|
||||||
TendersStrings.lessBudget,
|
|
||||||
TendersStrings.moreBudget,
|
|
||||||
].map((status) {
|
].map((status) {
|
||||||
return RadioListTile(
|
return RadioListTile(
|
||||||
value: status,
|
value: status,
|
||||||
|
|||||||
Reference in New Issue
Block a user