31 lines
895 B
Dart
31 lines
895 B
Dart
// import 'package:flutter/material.dart';
|
|
|
|
class PToastController {
|
|
//TODO: Figure out best toast to show
|
|
//Ideal is reuse FluffyChat UI for consistency
|
|
///show toast message
|
|
static toastMsg({bool success = false, String msg = ""}) {
|
|
// success
|
|
// ? Fluttertoast.showToast(
|
|
// msg: msg,
|
|
// fontSize: 16.0,
|
|
// backgroundColor: Color(0xFF228C22),
|
|
// webBgColor: "#228C22",
|
|
// textColor: Colors.white,
|
|
// timeInSecForIosWeb: 2)
|
|
// : Fluttertoast.showToast(
|
|
// msg: msg,
|
|
// fontSize: 16.0,
|
|
// timeInSecForIosWeb: 2,
|
|
// webBgColor: "#ff0000",
|
|
// backgroundColor: Colors.red,
|
|
// textColor: Colors.white,
|
|
// );
|
|
}
|
|
|
|
// @override
|
|
// void dispose() {
|
|
// // TODO: implement dispose
|
|
// super.dispose();
|
|
//}
|
|
}
|