showAboutDialog function

void showAboutDialog ({@required BuildContext context, String applicationName, String applicationVersion, Widget applicationIcon, String applicationLegalese, List<Widget> children })

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 argument is passed to showDialog, the documentation for which discusses how it is used.

Implementation

void showAboutDialog({
  @required BuildContext context,
  String applicationName,
  String applicationVersion,
  Widget applicationIcon,
  String applicationLegalese,
  List<Widget> children,
}) {
  showDialog<void>(
    context: context,
    builder: (BuildContext context) {
      return new AboutDialog(
        applicationName: applicationName,
        applicationVersion: applicationVersion,
        applicationIcon: applicationIcon,
        applicationLegalese: applicationLegalese,
        children: children,
      );
    }
  );
}