Displays an About dialog, which describes the application.
To use this plugin, add about
as a dependency in your pubspec.yaml file.
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'),
),
),
);