Skip to content

Commit

Permalink
fix: use latest version of flutter toast but pass background and text…
Browse files Browse the repository at this point in the history
… color
  • Loading branch information
Oliver-Zimmerman committed Feb 10, 2025
1 parent 3e73053 commit 1f7eefa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/view/telnyx_client_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ class TelnyxClientViewModel with ChangeNotifier {
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
backgroundColor: telnyx_green,
textColor: Colors.white,
);
switch (error.errorCode) {
case -32000:
Expand Down Expand Up @@ -542,6 +544,7 @@ class TelnyxClientViewModel with ChangeNotifier {
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
backgroundColor: telnyx_green,
textColor: Colors.white,
);
return;
}
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ dependencies:
path_provider: ^2.1.5
provider: ^6.1.2
flutter_svg: ^2.0.17
# Hardcoded to 8.2.2 because there are breaking changes for web in higher versions currently
fluttertoast: 8.2.2
fluttertoast: ^8.2.11

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 1f7eefa

Please sign in to comment.