🐛 [firebase_ui_auth] AlertDialog unclickable in iOS/macOS if used with MaterialApp() - eg delete account
Is there an existing issue for this?
- [x] I have searched the existing issues and found no duplicates.
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
iOS / macOS
List of dependencies used.
flutter pub deps -s list
Not relevant
Steps to reproduce
Wrap your ProfileScreen() in a MaterialApp() and see this popup on iOS/macOS:
This is unclickable because of the AlertDialog parameters given adaptiveAction() function: https://github.com/firebase/FirebaseUI-Flutter/blob/98a4f0d96af3916db291fc839ac3841ef7ddd09b/packages/firebase_ui_shared/lib/src/universal_alert.dart#L53-L71
Expected Behavior
Expected that AlertDialog() should be clickable if you decide to use MaterialApp() for iOS/macOS. Wrap the ProfileScreen() in CupertinoApp() and everything works fine. And looks like this:
Reason for it working as expected is because of these parameters: https://github.com/firebase/FirebaseUI-Flutter/blob/98a4f0d96af3916db291fc839ac3841ef7ddd09b/packages/firebase_ui_shared/lib/src/universal_alert.dart#L42-L49
Actual Behavior
Forces the developer to use CupertinoApp() for iOS/macOS and MaterialApp() on other devices if you want to use the UI-package.
Additional Information
It could be fixed by adding the adaptive handling by AlertDialog() here: https://github.com/firebase/FirebaseUI-Flutter/blob/98a4f0d96af3916db291fc839ac3841ef7ddd09b/packages/firebase_ui_shared/lib/src/universal_alert.dart#L54
Replace with:
return AlertDialog.adaptive(
But I have seen other PRs removing this feature earlier, so I did not want to push a new PR for "fixing" this. If it suppose to force developers to use CupertinoApp() for iOS/macOS.