diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 2232e90..8e71223 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -513,6 +513,8 @@ class _HomePageState extends State Platform.isMacOS) { launch(_filePath); } else { + _toast.showMobileToast( + "Files saved in Downloads."); await OpenFile.open(_filePath); } } diff --git a/lib/services/toast_service.dart b/lib/services/toast_service.dart index a644f44..464227e 100644 --- a/lib/services/toast_service.dart +++ b/lib/services/toast_service.dart @@ -56,4 +56,14 @@ class ToastService { toastDuration: const Duration(seconds: 2), ); } + + void showMobileToast(String text) { + Fluttertoast.showToast( + msg: text, + toastLength: Toast.LENGTH_LONG, + gravity: ToastGravity.CENTER, + timeInSecForIosWeb: 1, + textColor: Colors.white, + fontSize: 16.0); + } }