removed hardcoded status feedback and submission mode
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:tm_app/core/utils/size_config.dart';
|
||||
|
||||
import '../../core/constants/tender_submision_mode.dart';
|
||||
import '../../core/theme/colors.dart';
|
||||
|
||||
class SelectSubmissionDialog extends StatefulWidget {
|
||||
@@ -14,7 +15,7 @@ class SelectSubmissionDialog extends StatefulWidget {
|
||||
|
||||
class _SelectSubmissionDialogState extends State<SelectSubmissionDialog> {
|
||||
int selectedType = 0;
|
||||
String type = 'self-apply';
|
||||
String type = TenderSubmissionMode.selfApply.value;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Dialog(
|
||||
@@ -42,21 +43,21 @@ class _SelectSubmissionDialogState extends State<SelectSubmissionDialog> {
|
||||
),
|
||||
SizedBox(height: 8.0.h()),
|
||||
_submissionType(
|
||||
title: 'self-apply',
|
||||
isSelected: type == 'self-apply',
|
||||
title: 'Self-apply',
|
||||
isSelected: type == TenderSubmissionMode.selfApply.value,
|
||||
onTap: () {
|
||||
selectedType = 0;
|
||||
type = 'self-apply';
|
||||
type = TenderSubmissionMode.selfApply.value;
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
SizedBox(height: 8.0.h()),
|
||||
_submissionType(
|
||||
title: 'Partnership',
|
||||
isSelected: type == 'partnership',
|
||||
isSelected: type == TenderSubmissionMode.partnership.value,
|
||||
onTap: () {
|
||||
selectedType = 1;
|
||||
type = 'partnership';
|
||||
type = TenderSubmissionMode.partnership.value;
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user