second commit
This commit is contained in:
19
lib/Helper/toast.dart
Normal file
19
lib/Helper/toast.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
|
||||
import 'Constants/Colorconstants.dart';
|
||||
|
||||
class Toast{
|
||||
static void showToast(String message){
|
||||
Fluttertoast.showToast(
|
||||
msg: message,
|
||||
textColor: ColorConstants.secondaryColor,
|
||||
timeInSecForIosWeb: 1,
|
||||
webShowClose: true,
|
||||
backgroundColor: Colors.grey[500],
|
||||
gravity: ToastGravity.TOP_RIGHT,
|
||||
fontSize: 15.0
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user