showInfoSnackbar method
void
showInfoSnackbar(- String message,
- {String? buttonText,
- 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),
);
}