showInfoSnackbar method

void showInfoSnackbar(
  1. String message,
  2. {String? buttonText,
  3. void buttonOnPressed(
      )?}
    )

    Implementation

    void showInfoSnackbar(String message,
        {String? buttonText, void Function()? buttonOnPressed}) {
      Get.snackbar(
        '',
        '',
        boxShadows: [
          const BoxShadow(color: Colors.black, spreadRadius: 10, blurRadius: 100),
        ],
        backgroundColor: Colors.white,
        titleText: Container(),
        messageText: Row(
          children: [
            Icon(
              CupertinoIcons.info_circle,
              size: 30,
              color: Theme.of(Get.context!).primaryColor,
            ),
            const SizedBox(width: 16),
            Expanded(child: Text(message)),
          ],
        ),
        mainButton: buttonText != null
            ? TextButton(
                onPressed: buttonOnPressed,
                child: Text(buttonText),
              )
            : null,
        duration: const Duration(seconds: 2),
      );
    }