|
|
@ -23,6 +23,7 @@ class _RequestRefund extends State<RequestRefund> { |
|
|
|
FocusNode _focusNode = FocusNode(); |
|
|
|
FocusNode _focusNode = FocusNode(); |
|
|
|
bool isKeyBoardShow = false; |
|
|
|
bool isKeyBoardShow = false; |
|
|
|
int modifyAmountState = 0; |
|
|
|
int modifyAmountState = 0; |
|
|
|
|
|
|
|
int refundState = 0; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
void initState() { |
|
|
|
void initState() { |
|
|
@ -198,7 +199,11 @@ class _RequestRefund extends State<RequestRefund> { |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
onTap: (){ |
|
|
|
onTap: (){ |
|
|
|
showModifyAmountDialog(); |
|
|
|
if(refundState == 1){ |
|
|
|
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
showModifyAmountDialog(); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
width: double.infinity, |
|
|
|
width: double.infinity, |
|
|
@ -295,7 +300,10 @@ class _RequestRefund extends State<RequestRefund> { |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
), |
|
|
|
), |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
Navigator.of(context).pop(); |
|
|
|
setState((){ |
|
|
|
|
|
|
|
refundState = 1; |
|
|
|
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|