showMsgSuccess function

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

Implementation

Future showMsgSuccess(String title,String msg) async{
  Get.showSnackbar(GetSnackBar(
    backgroundColor: Colors.green,
    isDismissible: true,
    borderRadius: 300.sp,
    padding: const EdgeInsets.all(8.0),
    snackPosition: SnackPosition.TOP,
    maxWidth: 200+double.parse(msg.length.toString()),
    duration:  const Duration(seconds: 3),
    messageText: Center(
      child: text_widget(
          text: msg.toString(),
          color: Assetslist.assetColors['text_color'],
          fontSize: 13,
          fontWeight: FontWeight.w600,
          textAlign: TextAlign.center),
    ),
    snackStyle: SnackStyle.FLOATING,
  ));
}