AboutDialog.adaptive constructor

const AboutDialog.adaptive({
  1. Key? key,
  2. String? applicationName,
  3. String? applicationVersion,
  4. Widget? applicationIcon,
  5. String? applicationLegalese,
  6. List<Widget>? children,
})

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;