WIP
This commit is contained in:
parent
5a7bb289f0
commit
12c334bdd0
|
@ -172,23 +172,21 @@ Widget liberationDynamicListView(
|
||||||
height: double.infinity,
|
height: double.infinity,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
child: FutureBuilder<ApiCallResponse>(
|
child: FutureBuilder<ApiCallResponse>(
|
||||||
future: PhpGroup.getMessagesCall
|
future: Future(() async {
|
||||||
.call(
|
try {
|
||||||
devUUID: FFAppState().devUUID.toString(),
|
return await PhpGroup.getMessagesCall.call(
|
||||||
userUUID: FFAppState().userUUID.toString(),
|
devUUID: FFAppState().devUUID.toString(),
|
||||||
cliID: FFAppState().cliUUID.toString(),
|
userUUID: FFAppState().userUUID.toString(),
|
||||||
atividade: 'getMensagens',
|
cliID: FFAppState().cliUUID.toString(),
|
||||||
pageSize: '100',
|
atividade: 'getMensagens',
|
||||||
pageNumber: '1',
|
pageSize: '100',
|
||||||
tipoDestino: DestIndex,
|
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) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
if (snapshot.connectionState == ConnectionState.waiting) {
|
||||||
|
|
Loading…
Reference in New Issue