Committed by
GitHub
Merge pull request #11 from claudneysessa/patch-1
static snackbar -> add backgroundColor
Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -189,7 +189,7 @@ class Get { | @@ -189,7 +189,7 @@ class Get { | ||
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | static snackbar(title, message, | 191 | static snackbar(title, message, |
| 192 | - {Color colorText, Duration duration, SnackPosition snackPosition}) { | 192 | + {Color colorText, Duration duration, SnackPosition snackPosition, Color backgroundColor}) { |
| 193 | return GetBar( | 193 | return GetBar( |
| 194 | titleText: Text( | 194 | titleText: Text( |
| 195 | title, | 195 | title, |
| @@ -210,7 +210,7 @@ class Get { | @@ -210,7 +210,7 @@ class Get { | ||
| 210 | margin: EdgeInsets.symmetric(horizontal: 10), | 210 | margin: EdgeInsets.symmetric(horizontal: 10), |
| 211 | duration: duration ?? Duration(seconds: 3), | 211 | duration: duration ?? Duration(seconds: 3), |
| 212 | barBlur: 7.0, | 212 | barBlur: 7.0, |
| 213 | - backgroundColor: Colors.grey.withOpacity(0.2), | 213 | + backgroundColor: ( backgroundColor ?? Colors.grey.withOpacity(0.2) ), |
| 214 | )..show(); | 214 | )..show(); |
| 215 | } | 215 | } |
| 216 | } | 216 | } |
-
Please register or login to post a comment