showSuccessSnackbar method

void showSuccessSnackbar(
  1. String message
)

Implementation

void showSuccessSnackbar(String message) {
  Get.snackbar(
    '',
    '',
    backgroundColor: Theme.of(Get.context!).primaryColor,
    titleText: Container(),
    borderRadius: 0,
    messageText: Row(
      children: [
        Expanded(
            child: Text(
          message,
          style: const TextStyle(
            fontSize: 12,
            fontFamily: 'Gotham',
            fontWeight: FontWeight.w400,
            color: Colors.white,
          ),
        )),
      ],
    ),
    duration: const Duration(seconds: 2),
  );
}