FIX: Priorização na Requisição da Solicitação
This commit is contained in:
parent
70bfb5dd31
commit
1419df1ac1
|
@ -218,21 +218,13 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
icon: const Icon(Icons.done),
|
icon: const Icon(Icons.done),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
return answersRequest.call(
|
||||||
|
|
||||||
safeSetState(() {
|
|
||||||
_requestWrap = [];
|
|
||||||
_requestFuture = _fetchRequests();
|
|
||||||
});
|
|
||||||
|
|
||||||
var message = await answersRequest.call(
|
|
||||||
context,
|
context,
|
||||||
liberationHistoryItem['NOT_ID'].toString(),
|
liberationHistoryItem['NOT_ID'].toString(),
|
||||||
'L',
|
'L',
|
||||||
'',
|
'',
|
||||||
liberationHistoryItem['VTE_ID'].toString(),
|
liberationHistoryItem['VTE_ID'].toString(),
|
||||||
);
|
).then((message) {
|
||||||
|
|
||||||
if (message.isEmpty) {
|
if (message.isEmpty) {
|
||||||
showSnackbar(
|
showSnackbar(
|
||||||
context,
|
context,
|
||||||
|
@ -241,6 +233,13 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
showSnackbar(context, message, true);
|
showSnackbar(context, message, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
safeSetState(() {
|
||||||
|
_requestWrap = [];
|
||||||
|
_requestFuture = _fetchRequests();
|
||||||
|
});
|
||||||
|
|
||||||
|
Navigator.pop(context);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (liberationHistoryItem['NOT_STATUS'] == 'S')
|
if (liberationHistoryItem['NOT_STATUS'] == 'S')
|
||||||
|
@ -260,21 +259,13 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
icon: const Icon(Icons.close),
|
icon: const Icon(Icons.close),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
return answersRequest.call(
|
||||||
|
|
||||||
safeSetState(() {
|
|
||||||
_requestWrap = [];
|
|
||||||
_requestFuture = _fetchRequests();
|
|
||||||
});
|
|
||||||
|
|
||||||
var message = await answersRequest.call(
|
|
||||||
context,
|
context,
|
||||||
liberationHistoryItem['NOT_ID'].toString(),
|
liberationHistoryItem['NOT_ID'].toString(),
|
||||||
'B',
|
'B',
|
||||||
'',
|
'',
|
||||||
liberationHistoryItem['VTE_ID'].toString(),
|
liberationHistoryItem['VTE_ID'].toString(),
|
||||||
);
|
).then((message) {
|
||||||
|
|
||||||
if (message.isEmpty) {
|
if (message.isEmpty) {
|
||||||
showSnackbar(
|
showSnackbar(
|
||||||
context,
|
context,
|
||||||
|
@ -283,6 +274,13 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
showSnackbar(context, message, true);
|
showSnackbar(context, message, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
safeSetState(() {
|
||||||
|
_requestWrap = [];
|
||||||
|
_requestFuture = _fetchRequests();
|
||||||
|
});
|
||||||
|
|
||||||
|
Navigator.pop(context);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue