ライセンス一覧を表示する

July 30, 2021

何かしらライブラリが必要なのかと思ったら標準機能に実装されていた。

1
2
3
4
5
6
7
8
9
10
11
12
13
-      appBar: AppBar(title: const Text('Home')),
+      appBar: AppBar(
+        title: const Text('Home'),
+        leading: IconButton(
+          icon: Icon(Icons.info_outlined),
+          onPressed: () {
+            showAboutDialog(
+              context: context,
+              applicationName: 'Text Editter',
+            );
+          },
+        ),
+      ),

これで終わりだった。お手軽。

参考

https://blog.takuchalle.dev/post/2020/02/13/show_license_page/