1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 08:16:28 +00:00

Fix issue

This commit is contained in:
Pierre HUBERT 2020-05-10 18:32:14 +02:00
parent a119f60fdb
commit 260002270f

View File

@ -150,8 +150,8 @@ Future<bool> showConfirmDialog({
if (title == null) title = tr("Confirm operation"); if (title == null) title = tr("Confirm operation");
// Avoid potential theme issues // Avoid potential theme issues
var ctx = Scaffold.of(context).context; final scaffold = Scaffold.of(context, nullOk: true);
ctx = ctx != null ? ctx : context; final ctx = scaffold != null ? scaffold.context : context;
final result = await showDialog<bool>( final result = await showDialog<bool>(
context: ctx, context: ctx,