import 'package:blocknews/style/color.dart';
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
fluttertoast({
required String msg,
required ToastGravity toast,
Color? backgroundColor,
Color? textColor,
double? fontSize,
}) {
return Fluttertoast.showToast(
msg: msg,
toastLength: Toast.LENGTH_SHORT,
gravity: toast,
timeInSecForIosWeb: 1,
backgroundColor:
backgroundColor != null ? backgroundColor : appcolor.white,
textColor: textColor != null ? textColor : appcolor.black,
fontSize: fontSize != null ? fontSize : 12);
}
版权属于:
narakuyang
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论