From 300a597155af3bd74bdff274081085e486e3f5bc Mon Sep 17 00:00:00 2001 From: whysman Date: Sun, 10 Nov 2024 19:26:42 -0500 Subject: [PATCH] Updated toast library. Fixed color issue on mobile web --- lib/status_page.dart | 5 ++++- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/status_page.dart b/lib/status_page.dart index 7cc6939..2bb3d1e 100644 --- a/lib/status_page.dart +++ b/lib/status_page.dart @@ -65,8 +65,11 @@ class StatusPageState extends State { msg: 'Status "${newStatus.isEmpty ? 'cleared' : newStatus}" sent!', toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, - backgroundColor: Colors.black, + backgroundColor: Colors.blueAccent, + webBgColor: Colors.blueAccent.value.toString(), textColor: Colors.white, + fontSize: 16.0, + timeInSecForIosWeb: 1, ); } } diff --git a/pubspec.yaml b/pubspec.yaml index b54e417..cbd8975 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: shared_preferences: ^2.0.9 image_picker: ^1.1.2 uuid: ^4.4.2 - fluttertoast: ^8.0.9 + fluttertoast: ^8.2.8 # The following adds the Cupertino Icons font to your application.