stryder-dev / flutter_platform_widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets
MIT License
1.58k stars 171 forks source link

Support for material widgets in `PlatformAlertDialog` on iOS #379

Closed josxha closed 1 year ago

josxha commented 1 year ago

Like mentioned in https://github.com/stryder-dev/flutter_platform_widgets/issues/378 PlatformAlertDialog currently supports no material widgets when iosUsesMaterialWidgets or legacyIosUsesMaterialWidgets are used.

I implemented the usage of the two tags according to the implementation in PlatformScaffold.


I tested my pull request on an iOS simulator with the following temporary changes to the example app:

PlatformAlertDialog(
  title: Text('Alert'),
  content: ListTile(
    title: Text('$text content'), 
    subtitle: Text("subtitle"), 
    leading: Icon(Icons.abc),
  ),
  ...
)

The result: Unbenannt

Fixes: https://github.com/stryder-dev/flutter_platform_widgets/issues/378

aqwert commented 1 year ago

Version 2.2.6 is published