fix: exibição da snackbar e atualização da liberação após resolução
This commit is contained in:
parent
768dd3a7ae
commit
f5c1edcf6c
|
@ -230,12 +230,6 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
safeSetState(() {
|
|
||||||
_requestWrap = [];
|
|
||||||
_requestFuture = _fetchRequests();
|
|
||||||
});
|
|
||||||
|
|
||||||
context.pop();
|
|
||||||
SnackBarUtil.showSnackBar(
|
SnackBarUtil.showSnackBar(
|
||||||
context,
|
context,
|
||||||
FFLocalizations.of(context).getVariableText(
|
FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -254,7 +248,14 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
isError: true,
|
isError: true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}).whenComplete(() {});
|
}).whenComplete(() {
|
||||||
|
safeSetState(() {
|
||||||
|
_requestWrap = [];
|
||||||
|
_requestFuture = _fetchRequests();
|
||||||
|
});
|
||||||
|
|
||||||
|
context.pop();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (liberationHistoryItem['NOT_STATUS'] == 'S')
|
if (liberationHistoryItem['NOT_STATUS'] == 'S')
|
||||||
|
@ -283,12 +284,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
id: liberationHistoryItem['VTE_ID'].toString(),
|
id: liberationHistoryItem['VTE_ID'].toString(),
|
||||||
)
|
)
|
||||||
.then((message) {
|
.then((message) {
|
||||||
safeSetState(() {
|
if (message != null || message != '') {
|
||||||
_requestWrap = [];
|
|
||||||
_requestFuture = _fetchRequests();
|
|
||||||
});
|
|
||||||
context.pop();
|
|
||||||
if (message == null || message == '') {
|
|
||||||
showSnackbar(
|
showSnackbar(
|
||||||
context,
|
context,
|
||||||
FFLocalizations.of(context).getVariableText(
|
FFLocalizations.of(context).getVariableText(
|
||||||
|
@ -300,7 +296,13 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
} else {
|
} else {
|
||||||
showSnackbar(context, message, true);
|
showSnackbar(context, message, true);
|
||||||
}
|
}
|
||||||
}).whenComplete(() {});
|
}).whenComplete(() {
|
||||||
|
safeSetState(() {
|
||||||
|
_requestWrap = [];
|
||||||
|
_requestFuture = _fetchRequests();
|
||||||
|
});
|
||||||
|
context.pop();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue