mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix theming issues
This commit is contained in:
		@@ -171,8 +171,7 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
 | 
				
			|||||||
    try {
 | 
					    try {
 | 
				
			||||||
      if (!accept &&
 | 
					      if (!accept &&
 | 
				
			||||||
          !await showConfirmDialog(
 | 
					          !await showConfirmDialog(
 | 
				
			||||||
              context: Scaffold.of(context)
 | 
					              context: context,
 | 
				
			||||||
                  .context, // Without this the text appears in white
 | 
					 | 
				
			||||||
              message:
 | 
					              message:
 | 
				
			||||||
                  tr("Do you really want to reject this friendship request?")))
 | 
					                  tr("Do you really want to reject this friendship request?")))
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -146,8 +146,12 @@ Future<bool> showConfirmDialog({
 | 
				
			|||||||
}) async {
 | 
					}) async {
 | 
				
			||||||
  if (title == null) title = tr("Confirm operation");
 | 
					  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>(
 | 
					  final result = await showDialog<bool>(
 | 
				
			||||||
      context: context,
 | 
					      context: ctx,
 | 
				
			||||||
      builder: (c) => AlertDialog(
 | 
					      builder: (c) => AlertDialog(
 | 
				
			||||||
            title: Text(title),
 | 
					            title: Text(title),
 | 
				
			||||||
            content: Text(message),
 | 
					            content: Text(message),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user