forked from eatvio/eatvio_app
updated designe of aboute diet page
This commit is contained in:
15
lib/core/utils/toasts.dart
Normal file
15
lib/core/utils/toasts.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:eatvio_app/theme/theme_helper.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user