AboutDialog.adaptive constructor
Creates an adaptive AboutDialog based on whether the target platform is iOS or macOS, following Material design's Cross-platform guidelines.
Typically passed as a child of showAdaptiveAboutDialog, which will display the AboutDialog differently based on platform.
This constructor offers the same customization options as the default
AboutDialog constructor, allowing you to specify the application's
applicationName
, applicationVersion
, applicationIcon
,
applicationLegalese
, and additional children
that appear in the dialog.
The target platform is based on the current Theme: ThemeData.platform.
Implementation
const factory AboutDialog.adaptive({
Key? key,
String? applicationName,
String? applicationVersion,
Widget? applicationIcon,
String? applicationLegalese,
List<Widget>? children,
}) = _AdaptiveAboutDialog;