Commit 7794207c authored by tongzifang's avatar tongzifang

add toast

parent 590b7494
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
class QmToast {
static toast(String msg) {
if (msg.isNotEmpty) {
Fluttertoast.showToast(
msg: msg,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 2,
backgroundColor: Colors.black.withOpacity(0.6),
textColor: Colors.white.withOpacity(0.9),
fontSize: 16.0);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment