showSnackBarMessage function

ScaffoldFeatureController<Widget, dynamic> showSnackBarMessage(
  1. BuildContext context,
  2. String title,
  3. CustomColor customColor
)

Implementation

ScaffoldFeatureController showSnackBarMessage(BuildContext context, String title, CustomColor customColor) {
  return ScaffoldMessenger.of(context).showSnackBar(
    SnackBar(
      showCloseIcon: true,
      closeIconColor: customColor.backgroundColor ?? backgroundColor,
      backgroundColor: customColor.primaryColor ?? whiteColor,
      behavior: SnackBarBehavior.floating,
      margin: const EdgeInsets.only(bottom: 10, left: 10, right: 10, top: 0),
      content: customText(title, fontSize: 15.0, color: customColor.backgroundColor ?? backgroundColor,),
    ),
  );
}