Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sai Srinivas
GEN_ERP_2025
Commits
2b481c2a
Commit
2b481c2a
authored
Jun 19, 2025
by
Sai Srinivas
Browse files
19-06-2025 By Sai Srinivas
list submissions
parent
d24e453e
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/Notifiers/financeProvider/RequestionListProvider.dart
View file @
2b481c2a
...
@@ -195,7 +195,7 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -195,7 +195,7 @@ class Requestionlistprovider extends ChangeNotifier {
bool
buttonEnabled
=
false
;
bool
buttonEnabled
=
false
;
bool
_isLoading
=
true
;
bool
_isLoading
=
true
;
//
bool _submitClicked = false;
bool
_submitClicked
=
false
;
var
_image_picked
=
0
;
var
_image_picked
=
0
;
final
ImagePicker
_picker
=
ImagePicker
();
final
ImagePicker
_picker
=
ImagePicker
();
...
@@ -235,12 +235,12 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -235,12 +235,12 @@ class Requestionlistprovider extends ChangeNotifier {
List
<
RequistionList
>
get
requisitionList
=>
_requisitionList
;
List
<
RequistionList
>
get
requisitionList
=>
_requisitionList
;
//
bool get submitClicked => _submitClicked;
bool
get
submitClicked
=>
_submitClicked
;
//
set submitClicked(bool value){
set
submitClicked
(
bool
value
){
//
_submitClicked = value;
_submitClicked
=
value
;
//
notifyListeners();
notifyListeners
();
//
}
}
set
imagePath
(
File
?
value
)
{
set
imagePath
(
File
?
value
)
{
_imageName
=
value
;
_imageName
=
value
;
...
@@ -368,9 +368,10 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -368,9 +368,10 @@ class Requestionlistprovider extends ChangeNotifier {
Future
<
void
>
addPaymentRequestionSubmitAPI
(
context
,
mode
)
async
{
Future
<
void
>
addPaymentRequestionSubmitAPI
(
context
,
mode
)
async
{
try
{
try
{
// _submitClicked = true;
_submitClicked
=
true
;
notifyListeners
();
if
(!
validateForm
(
context
,
mode
))
{
if
(!
validateForm
(
context
,
mode
))
{
//
_submitClicked = false;
_submitClicked
=
false
;
return
;
return
;
}
}
...
@@ -400,14 +401,22 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -400,14 +401,22 @@ class Requestionlistprovider extends ChangeNotifier {
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
if
(
data
.
error
==
"0"
)
{
if
(
data
.
error
==
"0"
)
{
print
(
data
.
error
==
"0"
);
print
(
data
.
error
==
"0"
);
_submitClicked
=
false
;
notifyListeners
();
toast
(
context
,
"Added Successfully"
);
toast
(
context
,
"Added Successfully"
);
resetForm
();
resetForm
();
Navigator
.
pop
(
context
,
true
);
Navigator
.
pop
(
context
,
true
);
notifyListeners
();
notifyListeners
();
}
else
{}
}
else
{
_submitClicked
=
false
;
notifyListeners
();}
}
else
{
_submitClicked
=
false
;
notifyListeners
();
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
,
s
)
{
_submitClicked
=
false
;
notifyListeners
();
}
}
}
Future
<
void
>
addDirectPaymentRequestionViewAPI
(
context
)
async
{
Future
<
void
>
addDirectPaymentRequestionViewAPI
(
context
)
async
{
...
@@ -438,10 +447,11 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -438,10 +447,11 @@ class Requestionlistprovider extends ChangeNotifier {
payment_date
,
payment_date
,
)
async
{
)
async
{
try
{
try
{
// _submitClicked = true;
_submitClicked
=
true
;
notifyListeners
();
if
(!
validateDirectForm
(
context
))
{
if
(!
validateDirectForm
(
context
))
{
print
(
"came here"
);
print
(
"came here"
);
//
_submitClicked = false;
_submitClicked
=
false
;
return
;
return
;
}
}
...
@@ -469,13 +479,23 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -469,13 +479,23 @@ class Requestionlistprovider extends ChangeNotifier {
);
);
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
if
(
data
.
error
==
"0"
)
{
if
(
data
.
error
==
"0"
)
{
_submitClicked
=
false
;
toast
(
context
,
"Added Successfully"
);
toast
(
context
,
"Added Successfully"
);
resetForm
();
resetForm
();
Navigator
.
pop
(
context
,
true
);
Navigator
.
pop
(
context
,
true
);
notifyListeners
();
notifyListeners
();
}
else
{
_submitClicked
=
false
;
notifyListeners
();
}
}
}
else
{
_submitClicked
=
false
;
notifyListeners
();
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
,
s
)
{
_submitClicked
=
false
;
notifyListeners
();
}
}
}
Future
<
void
>
paymentRequestionListsAPIFunction
(
Future
<
void
>
paymentRequestionListsAPIFunction
(
...
@@ -818,6 +838,7 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -818,6 +838,7 @@ class Requestionlistprovider extends ChangeNotifier {
// }
// }
void
resetForm
()
{
void
resetForm
()
{
_submitClicked
=
false
;
reqPurposeController
.
clear
();
reqPurposeController
.
clear
();
descController
.
clear
();
descController
.
clear
();
amountController
.
clear
();
amountController
.
clear
();
...
@@ -843,7 +864,7 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -843,7 +864,7 @@ class Requestionlistprovider extends ChangeNotifier {
_imageName
=
null
;
_imageName
=
null
;
_image_picked
=
0
;
_image_picked
=
0
;
//
_submitClicked = false;
_submitClicked
=
false
;
// Clear validation errors
// Clear validation errors
selectAccountError
=
null
;
selectAccountError
=
null
;
...
@@ -925,69 +946,69 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -925,69 +946,69 @@ class Requestionlistprovider extends ChangeNotifier {
if
(
_selectedAccounts
==
null
||
_accountId
.
isEmpty
)
{
if
(
_selectedAccounts
==
null
||
_accountId
.
isEmpty
)
{
selectAccountError
=
"Please select an account"
;
selectAccountError
=
"Please select an account"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
([
"self"
,
"admin"
].
contains
(
mode
))
{
if
([
"self"
,
"admin"
].
contains
(
mode
))
{
if
(
_selectReqPurpose
==
null
||
_selectReqPurpose
!.
isEmpty
)
{
if
(
_selectReqPurpose
==
null
||
_selectReqPurpose
!.
isEmpty
)
{
reqPurposeError
=
"Please select a requisition purpose"
;
reqPurposeError
=
"Please select a requisition purpose"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
}
else
{
}
else
{
if
(
reqPurposeController
.
text
.
trim
().
isEmpty
)
{
if
(
reqPurposeController
.
text
.
trim
().
isEmpty
)
{
reqPurposeError
=
"Please enter a requisition purpose"
;
reqPurposeError
=
"Please enter a requisition purpose"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
}
}
if
(
descController
.
text
.
trim
().
isEmpty
)
{
if
(
descController
.
text
.
trim
().
isEmpty
)
{
descriptionError
=
"Please enter a description"
;
descriptionError
=
"Please enter a description"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
amountController
.
text
.
trim
().
isEmpty
)
{
if
(
amountController
.
text
.
trim
().
isEmpty
)
{
amountError
=
"Please enter an amount"
;
amountError
=
"Please enter an amount"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
_selectedPayment
==
null
||
_paymentModeId
.
isEmpty
)
{
if
(
_selectedPayment
==
null
||
_paymentModeId
.
isEmpty
)
{
selectPaymentError
=
"Please select a payment mode"
;
selectPaymentError
=
"Please select a payment mode"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
([
"Cheque"
,
"RTGS"
,
"IMPS"
,
"NEFT"
].
contains
(
_paymentModeValue
))
{
if
([
"Cheque"
,
"RTGS"
,
"IMPS"
,
"NEFT"
].
contains
(
_paymentModeValue
))
{
if
(
bankNameController
.
text
.
trim
().
isEmpty
)
{
if
(
bankNameController
.
text
.
trim
().
isEmpty
)
{
bankNameError
=
"Please enter bank name"
;
bankNameError
=
"Please enter bank name"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankBranchController
.
text
.
trim
().
isEmpty
)
{
if
(
bankBranchController
.
text
.
trim
().
isEmpty
)
{
bankBranchError
=
"Please enter bank branch"
;
bankBranchError
=
"Please enter bank branch"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankAccNumberController
.
text
.
trim
().
isEmpty
)
{
if
(
bankAccNumberController
.
text
.
trim
().
isEmpty
)
{
bankNumberError
=
"Please enter account number"
;
bankNumberError
=
"Please enter account number"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankIfscController
.
text
.
trim
().
isEmpty
)
{
if
(
bankIfscController
.
text
.
trim
().
isEmpty
)
{
bankIFSCError
=
"Please enter IFSC code"
;
bankIFSCError
=
"Please enter IFSC code"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankAcHolderController
.
text
.
trim
().
isEmpty
)
{
if
(
bankAcHolderController
.
text
.
trim
().
isEmpty
)
{
bankHolderError
=
"Please enter account holder name"
;
bankHolderError
=
"Please enter account holder name"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
}
}
if
(
_paymentModeValue
==
"UPI"
)
{
if
(
_paymentModeValue
==
"UPI"
)
{
if
(
bankUpiController
.
text
.
trim
().
isEmpty
)
{
if
(
bankUpiController
.
text
.
trim
().
isEmpty
)
{
UPIError
=
"Please enter UPI ID"
;
UPIError
=
"Please enter UPI ID"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
}
}
if
(
_image_picked
==
0
)
{
if
(
_image_picked
==
0
)
{
FileError
=
"Please attach a file"
;
FileError
=
"Please attach a file"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
buttonEnabled
=
isValid
;
buttonEnabled
=
isValid
;
notifyListeners
();
notifyListeners
();
...
...
lib/Notifiers/financeProvider/paymentReceiptsProvider.dart
View file @
2b481c2a
...
@@ -190,7 +190,7 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -190,7 +190,7 @@ class Paymentreceiptsprovider extends ChangeNotifier {
bool
buttonEnabled
=
false
;
bool
buttonEnabled
=
false
;
bool
_isLoading
=
true
;
bool
_isLoading
=
true
;
//
bool _submitClicked = false;
bool
_submitClicked
=
false
;
var
_image_picked
=
0
;
var
_image_picked
=
0
;
final
ImagePicker
_picker
=
ImagePicker
();
final
ImagePicker
_picker
=
ImagePicker
();
...
@@ -230,12 +230,12 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -230,12 +230,12 @@ class Paymentreceiptsprovider extends ChangeNotifier {
String
?
get
formattedDate
=>
_formattedDate
;
String
?
get
formattedDate
=>
_formattedDate
;
//
bool get submitClicked => _submitClicked;
bool
get
submitClicked
=>
_submitClicked
;
//
set submitClicked(bool value){
set
submitClicked
(
bool
value
){
//
_submitClicked = value;
_submitClicked
=
value
;
//
notifyListeners();
notifyListeners
();
//
}
}
set
imagePath
(
File
?
value
)
{
set
imagePath
(
File
?
value
)
{
_imageName
=
value
;
_imageName
=
value
;
...
@@ -454,9 +454,10 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -454,9 +454,10 @@ class Paymentreceiptsprovider extends ChangeNotifier {
receipt_date
,
receipt_date
,
)
async
{
)
async
{
try
{
try
{
// _submitClicked = true;
_submitClicked
=
true
;
notifyListeners
();
if
(!
validatereceiptForm
(
context
))
{
if
(!
validatereceiptForm
(
context
))
{
//
_submitClicked = false;
_submitClicked
=
false
;
return
;
return
;
}
}
...
@@ -484,13 +485,24 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -484,13 +485,24 @@ class Paymentreceiptsprovider extends ChangeNotifier {
);
);
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
if
(
data
.
error
==
"0"
)
{
if
(
data
.
error
==
"0"
)
{
_submitClicked
=
true
;
notifyListeners
();
toast
(
context
,
"Added Successfully"
);
toast
(
context
,
"Added Successfully"
);
resetForm
();
resetForm
();
Navigator
.
pop
(
context
,
true
);
Navigator
.
pop
(
context
,
true
);
notifyListeners
();
notifyListeners
();
}
else
{}
}
else
{
_submitClicked
=
true
;
notifyListeners
();
}
}
else
{
_submitClicked
=
true
;
notifyListeners
();
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
,
s
)
{
_submitClicked
=
true
;
notifyListeners
();
}
}
}
List
<
List
<
String
>>
prepareExportData
()
{
List
<
List
<
String
>>
prepareExportData
()
{
...
@@ -683,6 +695,7 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -683,6 +695,7 @@ class Paymentreceiptsprovider extends ChangeNotifier {
}
}
void
resetForm
()
{
void
resetForm
()
{
_submitClicked
=
false
;
reqPurposeController
.
clear
();
reqPurposeController
.
clear
();
descController
.
clear
();
descController
.
clear
();
amountController
.
clear
();
amountController
.
clear
();
...
@@ -775,63 +788,66 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -775,63 +788,66 @@ class Paymentreceiptsprovider extends ChangeNotifier {
bool
isValid
=
true
;
bool
isValid
=
true
;
if
(
_selectedreceiptAccounts
==
null
||
_receiptAccountID
.
isEmpty
)
{
if
(
_selectedreceiptAccounts
==
null
||
_receiptAccountID
.
isEmpty
)
{
selectAccountError
=
"Please select an Account"
;
selectAccountError
=
"Please select an Account"
;
_submitClicked
=
false
;
isValid
=
false
;
isValid
=
false
;
}
}
if
(
_selectreceiptPaymentAccounts
==
null
||
if
(
_selectreceiptPaymentAccounts
==
null
||
_receiptPaymentAccountsID
.
isEmpty
)
{
_receiptPaymentAccountsID
.
isEmpty
)
{
selectPaymentAccountError
=
"Please select an Account"
;
selectPaymentAccountError
=
"Please select an Account"
;
_submitClicked
=
false
;
isValid
=
false
;
isValid
=
false
;
}
}
if
(
amountController
.
text
.
trim
().
isEmpty
)
{
if
(
amountController
.
text
.
trim
().
isEmpty
)
{
amountError
=
"Please enter an amount"
;
amountError
=
"Please enter an amount"
;
_submitClicked
=
false
;
isValid
=
false
;
isValid
=
false
;
}
}
if
(
dateController
.
text
.
trim
().
isEmpty
||
_formattedDate
!.
isEmpty
)
{
if
(
dateController
.
text
.
trim
().
isEmpty
||
_formattedDate
!.
isEmpty
)
{
dateError
=
"Please select Date"
;
dateError
=
"Please select Date"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
_selectreceiptPaymentModes
==
null
||
_receiptPaymentModesID
.
isEmpty
)
{
if
(
_selectreceiptPaymentModes
==
null
||
_receiptPaymentModesID
.
isEmpty
)
{
selectPaymentError
=
"Please select a payment mode"
;
selectPaymentError
=
"Please select a payment mode"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
([
"Cheque"
,
"RTGS"
,
"IMPS"
,
"NEFT"
].
contains
(
_paymentModeValue
))
{
if
([
"Cheque"
,
"RTGS"
,
"IMPS"
,
"NEFT"
].
contains
(
_paymentModeValue
))
{
if
(
bankNameController
.
text
.
trim
().
isEmpty
)
{
if
(
bankNameController
.
text
.
trim
().
isEmpty
)
{
bankNameError
=
"Please enter bank name"
;
bankNameError
=
"Please enter bank name"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankBranchController
.
text
.
trim
().
isEmpty
)
{
if
(
bankBranchController
.
text
.
trim
().
isEmpty
)
{
bankBranchError
=
"Please enter bank branch"
;
bankBranchError
=
"Please enter bank branch"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankAccNumberController
.
text
.
trim
().
isEmpty
)
{
if
(
bankAccNumberController
.
text
.
trim
().
isEmpty
)
{
bankNumberError
=
"Please enter account number"
;
bankNumberError
=
"Please enter account number"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankIfscController
.
text
.
trim
().
isEmpty
)
{
if
(
bankIfscController
.
text
.
trim
().
isEmpty
)
{
bankIFSCError
=
"Please enter IFSC code"
;
bankIFSCError
=
"Please enter IFSC code"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
bankAcHolderController
.
text
.
trim
().
isEmpty
)
{
if
(
bankAcHolderController
.
text
.
trim
().
isEmpty
)
{
bankHolderError
=
"Please enter account holder name"
;
bankHolderError
=
"Please enter account holder name"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
}
}
if
(
_paymentModeValue
==
"UPI"
)
{
if
(
_paymentModeValue
==
"UPI"
)
{
if
(
bankUpiController
.
text
.
trim
().
isEmpty
)
{
if
(
bankUpiController
.
text
.
trim
().
isEmpty
)
{
UPIError
=
"Please enter UPI ID"
;
UPIError
=
"Please enter UPI ID"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
}
}
if
(
paymentReferenceController
.
text
.
trim
().
isEmpty
)
{
if
(
paymentReferenceController
.
text
.
trim
().
isEmpty
)
{
paymentreferenceError
=
"please enter refernce number"
;
paymentreferenceError
=
"please enter refernce number"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
if
(
descController
.
text
.
trim
().
isEmpty
)
{
if
(
descController
.
text
.
trim
().
isEmpty
)
{
descriptionError
=
"Please Enter Description"
;
descriptionError
=
"Please Enter Description"
;
isValid
=
false
;
isValid
=
false
;
_submitClicked
=
false
;
}
}
notifyListeners
();
notifyListeners
();
return
isValid
;
return
isValid
;
...
...
lib/screens/finance/addPaymentReceiptList.dart
View file @
2b481c2a
...
@@ -518,8 +518,8 @@ class _AddpaymentreceiptlistState extends State<Addpaymentreceiptlist> {
...
@@ -518,8 +518,8 @@ class _AddpaymentreceiptlistState extends State<Addpaymentreceiptlist> {
floatingActionButtonLocation:
floatingActionButtonLocation:
FloatingActionButtonLocation
.
centerFloat
,
FloatingActionButtonLocation
.
centerFloat
,
bottomNavigationBar:
InkResponse
(
bottomNavigationBar:
InkResponse
(
onTap:
()
{
onTap:
provider
.
submitClicked
?
null
:
()
{
//
provider.submitClicked = true;
provider
.
submitClicked
=
true
;
provider
.
addReceiptPaymentRequestionSubmitAPI
(
context
,
provider
.
formattedDate
);
provider
.
addReceiptPaymentRequestionSubmitAPI
(
context
,
provider
.
formattedDate
);
},
},
child:
Container
(
child:
Container
(
...
@@ -531,7 +531,9 @@ class _AddpaymentreceiptlistState extends State<Addpaymentreceiptlist> {
...
@@ -531,7 +531,9 @@ class _AddpaymentreceiptlistState extends State<Addpaymentreceiptlist> {
color:
AppColors
.
app_blue
,
color:
AppColors
.
app_blue
,
borderRadius:
BorderRadius
.
circular
(
15
),
borderRadius:
BorderRadius
.
circular
(
15
),
),
),
child:
Text
(
child:
provider
.
submitClicked
?
CircularProgressIndicator
.
adaptive
(
valueColor:
AlwaysStoppedAnimation
(
AppColors
.
app_blue
),
):
Text
(
"Submit"
,
"Submit"
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
15
,
fontSize:
15
,
...
...
lib/screens/finance/directPaymentRequesitionList.dart
View file @
2b481c2a
...
@@ -535,8 +535,8 @@ class _DirectpaymentrequesitionlistState
...
@@ -535,8 +535,8 @@ class _DirectpaymentrequesitionlistState
floatingActionButtonLocation:
floatingActionButtonLocation:
FloatingActionButtonLocation
.
centerFloat
,
FloatingActionButtonLocation
.
centerFloat
,
bottomNavigationBar:
InkResponse
(
bottomNavigationBar:
InkResponse
(
onTap:
()
{
onTap:
provider
.
submitClicked
?
null
:
()
{
//
provider.submitClicked = true;
provider
.
submitClicked
=
true
;
provider
.
addDirectPaymentRequestionSubmitAPI
(
provider
.
addDirectPaymentRequestionSubmitAPI
(
context
,
context
,
provider
.
formattedDate
,
provider
.
formattedDate
,
...
@@ -551,7 +551,9 @@ class _DirectpaymentrequesitionlistState
...
@@ -551,7 +551,9 @@ class _DirectpaymentrequesitionlistState
color:
AppColors
.
app_blue
,
color:
AppColors
.
app_blue
,
borderRadius:
BorderRadius
.
circular
(
15
),
borderRadius:
BorderRadius
.
circular
(
15
),
),
),
child:
Text
(
child:
provider
.
submitClicked
?
CircularProgressIndicator
.
adaptive
(
valueColor:
AlwaysStoppedAnimation
(
AppColors
.
app_blue
),
):
Text
(
"Submit"
,
"Submit"
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
15
,
fontSize:
15
,
...
...
lib/screens/finance/submitPaymentRequestionListsByMode.dart
View file @
2b481c2a
...
@@ -469,8 +469,8 @@ class _SubmitpaymentrequestionlistsbymodeState
...
@@ -469,8 +469,8 @@ class _SubmitpaymentrequestionlistsbymodeState
floatingActionButtonLocation:
floatingActionButtonLocation:
FloatingActionButtonLocation
.
centerFloat
,
FloatingActionButtonLocation
.
centerFloat
,
bottomNavigationBar:
InkResponse
(
bottomNavigationBar:
InkResponse
(
onTap:
()
{
onTap:
provider
.
submitClicked
?
null
:
()
{
//
provider.submitClicked = true;
provider
.
submitClicked
=
true
;
provider
.
addPaymentRequestionSubmitAPI
(
provider
.
addPaymentRequestionSubmitAPI
(
context
,
context
,
widget
.
mode
,
widget
.
mode
,
...
@@ -485,7 +485,7 @@ class _SubmitpaymentrequestionlistsbymodeState
...
@@ -485,7 +485,7 @@ class _SubmitpaymentrequestionlistsbymodeState
color:
AppColors
.
app_blue
,
color:
AppColors
.
app_blue
,
borderRadius:
BorderRadius
.
circular
(
15
),
borderRadius:
BorderRadius
.
circular
(
15
),
),
),
child:
Text
(
child:
provider
.
submitClicked
?
CircularProgressIndicator
.
adaptive
(
valueColor:
AlwaysStoppedAnimation
(
AppColors
.
app_blue
),):
Text
(
"Submit"
,
"Submit"
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
15
,
fontSize:
15
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment