Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show material dialog for deleting the account on macos due to a Flutter bug #1730

Merged
merged 2 commits into from
Sep 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:helper_functions/helper_functions.dart';
import 'package:platform_check/platform_check.dart';
import 'package:provider/provider.dart' as pv;
import 'package:sharezone/account/account_page.dart';
import 'package:sharezone/account/change_data_bloc.dart';
Expand Down Expand Up @@ -457,7 +458,10 @@ class _DeleteAccountDialogContentState
final provider = api.user.authUser!.provider;
const text = "Ja, ich möchte mein Konto löschen.";

if (ThemePlatform.isCupertino) {
// Because of https://github.com/flutter/flutter/issues/154793 we shouldn't
// show the CupertinoAlertDialog on macOS. Can be removed when the issue is
// fixed and rolled out to the stable channel.
if (ThemePlatform.isCupertino && !PlatformCheck.isMacOS) {
return CupertinoAlertDialog(
title: const _DeleteAccountDialogTitle(),
content: SingleChildScrollView(
Expand Down
Loading