first commit
This commit is contained in:
16
lib/helper/toaster.dart
Normal file
16
lib/helper/toaster.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import '../constants/color_constants.dart';
|
||||
|
||||
class Toast{
|
||||
static void showToast(String message){
|
||||
Fluttertoast.showToast(
|
||||
msg: message,
|
||||
textColor: ColorConstants.secondaryColor,
|
||||
timeInSecForIosWeb: 1,
|
||||
webShowClose: true,
|
||||
backgroundColor: ColorConstants.grey,
|
||||
gravity: ToastGravity.TOP_RIGHT,
|
||||
fontSize: 15.0,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user