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.
doctor_app_flutter/lib/utils/dr_app_toast_msg.dart

26 lines
674 B
Dart

import 'package:flutter/material.dart';
4 years ago
import 'package:fluttertoast/fluttertoast.dart';
5 years ago
class DrAppToastMsg {
static void showSuccesToast(msg) {
4 years ago
Fluttertoast.showToast(
msg: msg,
toastLength: Toast.LENGTH_SHORT,
4 years ago
gravity: ToastGravity.TOP,
// timeInSecForIosWeb: timeInSeconds,
backgroundColor: Colors.green,
textColor: Colors.white,
fontSize: 16);
}
static void showErrorToast(msg) {
4 years ago
Fluttertoast.showToast(
msg: msg,
toastLength: Toast.LENGTH_SHORT,
4 years ago
gravity: ToastGravity.TOP,
backgroundColor: Colors.red,
textColor: Colors.white,
4 years ago
fontSize: 16);
}
5 years ago
}