The iosUsesMaterialWidgets and legacyIosUsesMaterialWidgets attributes are currently used for CupertinoScaffold and CupertinoTabScaffold, but have no effect on PlatformAlertDialog.
Since PlatformAlertDialog can also include material widgets, this functionality should be added here as well.
Example code:
await showPlatformDialog(context: context, builder: (context) {
PlatformAlertDialog(
content: ListTile(
title: Text("This doesn't work on iOS because a Material widget is missing."),
),
);
});
The
iosUsesMaterialWidgets
andlegacyIosUsesMaterialWidgets
attributes are currently used forCupertinoScaffold
andCupertinoTabScaffold
, but have no effect onPlatformAlertDialog
.Since
PlatformAlertDialog
can also include material widgets, this functionality should be added here as well.Example code: