showSuccess method

void showSuccess(
  1. String description
)

Implementation

void showSuccess(String description) async {
  Get.defaultDialog(
      title: description,
      titlePadding: const EdgeInsets.symmetric(vertical: 14),
      content: const Icon(
        Icons.check_circle,
        color: Colors.green,
        size: 40,
      ),
      contentPadding:
          const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
      radius: 4);
  await Future.delayed(const Duration(milliseconds: 1600));
  hideLoading();
}