toastNotification static method
Implementation
static void toastNotification(String text) {
if (Platform.isWindows) {
// For Windows, we can use a simple print statement or a custom dialog
if (kDebugMode) {
print(text);
}
stackbarNotification(
Get.context!,
text,
);
return;
}
Fluttertoast.showToast(
msg: text,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
timeInSecForIosWeb: 1,
fontSize: 14.0,
);
}