showInfoDialog function

dynamic showInfoDialog(
  1. dynamic context,
  2. dynamic msg
)

Implementation

showInfoDialog(context, msg) {
  AwesomeDialog(
    dismissOnTouchOutside: false,
    context: context,
    animType: AnimType.SCALE,
    dialogType: DialogType.NO_HEADER,
    body: Center(
      child: Text(
        msg,
        style: const TextStyle(fontStyle: FontStyle.normal, fontWeight: FontWeight.bold),
        textAlign: TextAlign.center,
      ),
    ),
    btnOkOnPress: () async {},
    btnOkColor: payUnitGreenColor,
  ).show();
}