showAboutDialog function

void showAboutDialog(
  1. {required BuildContext context,
  2. String? applicationName,
  3. String? applicationVersion,
  4. Widget? applicationIcon,
  5. String? applicationLegalese,
  6. List<Widget>? children,
  7. bool barrierDismissible = true,
  8. Color? barrierColor,
  9. String? barrierLabel,
  10. bool useRootNavigator = true,
  11. RouteSettings? routeSettings,
  12. Offset? anchorPoint}

Displays an AboutDialog, which describes the application and provides a button to show licenses for software used by the application.

The arguments correspond to the properties on AboutDialog.

If the application has a Drawer, consider using AboutListTile instead of calling this directly.

If you do not need an about box in your application, you should at least provide an affordance to call showLicensePage.

The licenses shown on the LicensePage are those returned by the LicenseRegistry API, which can be used to add more licenses to the list.

The context, barrierDismissible, barrierColor, barrierLabel, useRootNavigator, routeSettings and anchorPoint arguments are passed to showDialog, the documentation for which discusses how it is used.


void showAboutDialog({
  required BuildContext context,
  String? applicationName,
  String? applicationVersion,
  Widget? applicationIcon,
  String? applicationLegalese,
  List<Widget>? children,
  bool barrierDismissible = true,
  Color? barrierColor,
  String? barrierLabel,
  bool useRootNavigator = true,
  RouteSettings? routeSettings,
  Offset? anchorPoint,
}) {
    context: context,
    barrierDismissible: barrierDismissible,
    barrierColor: barrierColor,
    barrierLabel: barrierLabel,
    useRootNavigator: useRootNavigator,
    builder: (BuildContext context) {
      return AboutDialog(
        applicationName: applicationName,
        applicationVersion: applicationVersion,
        applicationIcon: applicationIcon,
        applicationLegalese: applicationLegalese,
        children: children,
    routeSettings: routeSettings,
    anchorPoint: anchorPoint,