WIP
This commit is contained in:
parent
5a7bb289f0
commit
12c334bdd0
|
@ -172,8 +172,9 @@ Widget liberationDynamicListView(
|
|||
height: double.infinity,
|
||||
decoration: const BoxDecoration(),
|
||||
child: FutureBuilder<ApiCallResponse>(
|
||||
future: PhpGroup.getMessagesCall
|
||||
.call(
|
||||
future: Future(() async {
|
||||
try {
|
||||
return await PhpGroup.getMessagesCall.call(
|
||||
devUUID: FFAppState().devUUID.toString(),
|
||||
userUUID: FFAppState().userUUID.toString(),
|
||||
cliID: FFAppState().cliUUID.toString(),
|
||||
|
@ -181,14 +182,11 @@ Widget liberationDynamicListView(
|
|||
pageSize: '100',
|
||||
pageNumber: '1',
|
||||
tipoDestino: DestIndex,
|
||||
)
|
||||
.catchError((error) {
|
||||
log('Error: ${error.toString()}');
|
||||
return Future.delayed(Duration(seconds: 1), () {
|
||||
return Center(
|
||||
child: Text('Erro ao carregar mensagens'),
|
||||
);
|
||||
});
|
||||
} catch (error) {
|
||||
log('Error: ${error.toString()}');
|
||||
throw error;
|
||||
}
|
||||
}),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||
|
|
Loading…
Reference in New Issue