You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
895 B
Dart
32 lines
895 B
Dart
|
2 years ago
|
// 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();
|
||
|
|
//}
|
||
|
|
}
|