toToast function

dynamic toToast(
  1. String text
)

Implementation

toToast(String text) {
  if (Platform.isIOS) {
    FocusManager.instance.primaryFocus?.unfocus();
  }
  Fluttertoast.showToast(
      msg: text,
      toastLength: Toast.LENGTH_SHORT,
      gravity: ToastGravity.BOTTOM,
      timeInSecForIosWeb: 1,
      textColor: MirrorflyUikit.getTheme?.colorOnPrimary,
      backgroundColor: MirrorflyUikit.getTheme?.primaryColor,
      fontSize: 16.0);
  // Get.showSnackbar(
  //   GetSnackBar(
  //     message: text,
  //     isDismissible: false,
  //     // icon: const Icon(Icons.refresh),
  //     duration: const Duration(seconds: 5),
  //     animationDuration: const Duration(seconds: 1),
  //   ),
  // );
}