toast function
dynamic
toast({
- dynamic message,
- dynamic backgroundColor,
- dynamic textColor,
- dynamic fontSize,
Implementation
toast({message, backgroundColor, textColor, fontSize}) {
return ScaffoldMessenger.of(Get.context!).showSnackBar(SnackBar(
behavior: SnackBarBehavior.floating,
duration: const Duration(seconds: 2),
margin: EdgeInsets.symmetric(
vertical: Platform.isAndroid ? height_40 : height_40,
horizontal: margin_30),
content: commonText(message, color: white, fontSize: font_13),
));
}