forked from eatvio/eatvio_app
create diet screen updated
This commit is contained in:
@@ -5,11 +5,24 @@ const int _toastDuration = 2;
|
||||
|
||||
void showInfoToast(String message) {
|
||||
Fluttertoast.showToast(
|
||||
msg: message,
|
||||
toastLength: Toast.LENGTH_SHORT,
|
||||
gravity: ToastGravity.TOP,
|
||||
timeInSecForIosWeb: _toastDuration,
|
||||
backgroundColor: appTheme.blueA400,
|
||||
textColor: appTheme.whiteA700,
|
||||
fontSize: 16.0,);
|
||||
msg: message,
|
||||
toastLength: Toast.LENGTH_SHORT,
|
||||
gravity: ToastGravity.TOP,
|
||||
timeInSecForIosWeb: _toastDuration,
|
||||
backgroundColor: appTheme.blueA400,
|
||||
textColor: appTheme.whiteA700,
|
||||
fontSize: 16.0,
|
||||
);
|
||||
}
|
||||
|
||||
void showErrorToast(String message) {
|
||||
Fluttertoast.showToast(
|
||||
msg: message,
|
||||
toastLength: Toast.LENGTH_LONG,
|
||||
gravity: ToastGravity.TOP,
|
||||
timeInSecForIosWeb: _toastDuration,
|
||||
backgroundColor: appTheme.whiteA700,
|
||||
textColor: appTheme.gray,
|
||||
fontSize: 16.0,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user