showArnaLicensePage function

void showArnaLicensePage({
  1. required BuildContext context,
  2. bool useRootNavigator = false,
})

Displays an ArnaLicensePage, which shows licenses for software used by the application.

The application arguments correspond to the properties on ArnaLicensePage.

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.

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

Implementation

void showArnaLicensePage({
  required BuildContext context,
  bool useRootNavigator = false,
}) {
  Navigator.of(context, rootNavigator: useRootNavigator).push(
    ArnaPageRoute<void>(
      builder: (BuildContext context) => const ArnaLicensePage(),
    ),
  );
}