showAppAboutDialog function

Future<void> showAppAboutDialog(
  1. BuildContext context
)

Display the about dialog for the app.

Implementation

Future<void> showAppAboutDialog(BuildContext context) async {
  final appInfo = await getAppNameVersion();
  final appName = appInfo.name;

  final about = wordWrap('''

  Inner Pod is an app for timing meditation sessions and, optionally, storing a
  log of your meditation sessions to your Pod. A session, in fact, can be
  anything.  The app is commonly used for contemplative or silent meditation as
  is the tradition in many cultures and religions. The blue progress circle
  provides a visual cue that the session is active and audio may be
  playing. The concept for the app and images were generated by large
  language models.

  The app is written in Flutter and the open source code is available from
  **github**.  You can also run the app **online** through your browser.

  **GitHub** [https://github.com/Amoghhosamane/innerpod](https://github.com/Amoghhosamane/innerpod)

  **OnLine** [https://innerpod.solidcommunity.au](https://innerpod.solidcommunity.au)

  **Author** [Graham&nbsp;Williams](https://togaware.com/graham.williams.html)
      ''');

  if (context.mounted) {
    showAboutDialog(
      context: context,
      applicationIcon: Image.asset(
        'assets/images/app_icon.png',
        width: 100,
        height: 100,
      ),
      applicationName: '${appName[0].toUpperCase()}${appName.substring(1)}',
      applicationVersion: appInfo.version,
      applicationLegalese: '© 2024 Togaware',
      children: [
        const Gap(20),
        AppMarkdownBody(data: about),
      ],
    );
  }
}