showRLicensePage function

void showRLicensePage (
  1. {String applicationName,
  2. String applicationVersion,
  3. Widget applicationIcon,
  4. String applicationLegalese}
)

Displays a LicensePage, which shows licenses for software used by the application.

The application arguments correspond to the properties on LicensePage.

The context argument is used to look up the Navigator for the page.

The useRootNavigator argument is used to determine whether to push the page to the Navigator furthest from or nearest to the given context. It is false by default.

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

The AboutDialog shown by showAboutDialog includes a button that calls 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.

Implementation

void showRLicensePage({
  String applicationName,
  String applicationVersion,
  Widget applicationIcon,
  String applicationLegalese,
}) {
  RRouter.navigator.push(MaterialPageRoute<void>(
    builder: (BuildContext context) => LicensePage(
      applicationName: applicationName,
      applicationVersion: applicationVersion,
      applicationIcon: applicationIcon,
      applicationLegalese: applicationLegalese,
    ),
  ));
}