showMsgFailed function

Future showMsgFailed(
  1. String title,
  2. String msg
)

Implementation

Future showMsgFailed(String title,String msg) async{
  Get.showSnackbar(GetSnackBar(
    backgroundColor: Colors.red,
    isDismissible: true,
    borderRadius: 200.sp,
    padding: const EdgeInsets.all(8.0),
    snackPosition: SnackPosition.TOP,
    maxWidth: 250,
    duration:  Duration(seconds: 3),
    messageText: Center(
      child: text_widget(
          text: msg.toString(),
          color: 0xffFFFFFF,
          fontSize: 13,
          fontWeight: FontWeight.w600,
          textAlign: TextAlign.center),
    ),
    snackStyle: SnackStyle.FLOATING,
  ));
}