adaptiveDialogRadius property

FlexAdaptive? adaptiveDialogRadius
final

Controls if the dialogRadiusAdaptive is used instead of dialogRadius on configured platforms.

With this feature you can have another configured border radius on all dialogs with based on another ShapeBorder than the one you have defined in dialogRadius.

If you keep dialogRadius undefined and define dialogRadiusAdaptive, you can get the M3 default radius on platforms not included in your adaptiveDialogRadius and use the dialogRadiusAdaptive radius on all dialogs in the platforms included in the adaptiveDialogRadius configuration.

For example for iOS you may want to try 13dp as border radius on dialogs, which according to some WEB sources is an approximation used in HIG. Flutter uses 14dp on its iOS styled CupertinoAlertDialog, you can try that as well.

See class FlexAdaptive on how to configure the platform adaptive behavior. You may for example use the FlexAdaptive.iOSAndDesktop for a configuration that keeps used dialogRadius value on Android and Fuchsia platforms, and also when the app is run in a web browser on these platforms, but uses the dialogRadiusAdaptive value on other platforms, like iOS, desktop and their web usage.

If not defined, defaults to FlexAdaptive.off.

Implementation

final FlexAdaptive? adaptiveDialogRadius;