fix: Permission chooser dialog on iOS

This commit is contained in:
Christian Pauly 2022-07-30 08:36:17 +02:00
commit e7b851dda2
5 changed files with 66 additions and 204 deletions

View file

@ -115,9 +115,10 @@ class UserBottomSheetController extends State<UserBottomSheet> {
}
break;
case 'permission':
final newPermission = await PermissionSliderDialog(
initialPermission: widget.user.powerLevel)
.show(context);
final newPermission = await showPermissionChooser(
context,
currentLevel: widget.user.powerLevel,
);
if (newPermission != null) {
if (newPermission == 100 && await _askConfirmation() == false) break;
await showFutureLoadingDialog(