legacyIosUsesMaterialWidgets property
Adds a Material widget to CupertinoScaffold
, CupertinoTabScaffold and
CupertinoAlertDialog to allow for Material widgets to be used. This is required when using
a PlatformApp since some Material widgets will expect a Material parent, otherwise an
exception is thrown.
Note: This may affect fonts and colors and dark mode may not work in all cases.
Note: legacyIosUsesMaterialWidgets places the Material widget above the CupertinoScaffold and CupertinoTabScaffold widgets matching the behaviour before v1.6.0
Implementation
final bool legacyIosUsesMaterialWidgets;