mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
Fix issue
This commit is contained in:
parent
a119f60fdb
commit
260002270f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user