Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

O app não mostra o success dialog

void _save(Transaction transactionCreated, String password) async { _webClient.save(transactionCreated, password).then((transaction) { Future.delayed(const Duration(seconds: 5)); showDialog( context: context, builder: (contextDialog) { return const SuccessDialog('successful transaction'); }).then((value) => Navigator.pop(context)); }).catchError((error) { showDialog( context: context, builder: (contextDialog) { return FailureDialog(error.message); }); }, test: (error) => error is HttpException).catchError((error) { showDialog( context: context, builder: (contextDialog) { return const FailureDialog('timeout submitting the transaction'); }); }, test: (error) => error is TimeoutException); } }

O ERRO => ════════ Exception caught by widgets library ═══════════════════════════════════ type 'Null' is not a subtype of type 'String' The relevant error-causing widget was MaterialApp

1 resposta
solução!

Resolvido