about 2.2.0 about: ^2.2.0 copied to clipboard
Displays an About dialog, which describes the application, can show licenses, changelog, and other information.
About #
Displays an About dialog, which describes the application.
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'),
),
),
);