import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:fluttertoast/fluttertoast.dart';

class SCTts{
  static show(String msg, {gravity = ToastGravity.BOTTOM}) {
    Fluttertoast.showToast(
        msg: msg,
        toastLength: Toast.LENGTH_SHORT,
        gravity: gravity, //位置
        timeInSecForIosWeb: 2, //时间
        backgroundColor: Colors.black45,
        textColor: Colors.white);
  }
}