diff --git a/lib/my_app_bar.dart b/lib/my_app_bar.dart index 682a52e..26b68c0 100644 --- a/lib/my_app_bar.dart +++ b/lib/my_app_bar.dart @@ -25,6 +25,10 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { } } + void runReload() async { + reload(); + } + void runShare() async { await Share.shareFiles([target!.path]); } @@ -61,6 +65,12 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { text: const Text('Open'), color: primary(context), ), + IconTextButton( + onPressed: isOpenImage() ? runReload : null, + icon: const Icon(Icons.refresh), + text: const Text('Reload dir'), + color: primary(context) + ), IconTextButton( onPressed: shareable() ? runShare : null, icon: const Icon(Icons.share),