Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.18 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.18 KB

About

Displays an About dialog, which describes the application.

Example

Buy Me A Coffee

Usage

To use this plugin, add about as a dependency in your pubspec.yaml file.

Example

  showAboutPage(
    context: context,
    values: {
      'version': '1.0',
      'year': DateTime.now().year.toString(),
    },
    applicationLegalese: 'Copyright © David PHAM-VAN, {{ year }}',
    applicationDescription: const Text(
        'Displays an About dialog, which describes the application.'),
    children: const <Widget>[
      MarkdownPageListTile(
        icon: Icon(Icons.list),
        title: Text('Changelog'),
        filename: 'CHANGELOG.md',
      ),
      LicensesPageListTile(
        icon: Icon(Icons.favorite),
      ),
    ],
    applicationIcon: const SizedBox(
      width: 100,
      height: 100,
      child: Image(
        image: AssetImage('assets/icon.webp'),
      ),
    ),
  );