mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Fix theming issues
This commit is contained in:
@ -146,8 +146,12 @@ Future<bool> showConfirmDialog({
|
||||
}) async {
|
||||
if (title == null) title = tr("Confirm operation");
|
||||
|
||||
// Avoid potential theme issues
|
||||
var ctx = Scaffold.of(context).context;
|
||||
ctx = ctx!= null ? ctx : context;
|
||||
|
||||
final result = await showDialog<bool>(
|
||||
context: context,
|
||||
context: ctx,
|
||||
builder: (c) => AlertDialog(
|
||||
title: Text(title),
|
||||
content: Text(message),
|
||||
|
Reference in New Issue
Block a user