notificationSnackBar static method
GetBar
notificationSnackBar(
{ - String title = 'Notification',
- required String message,
})
Implementation
static GetBar notificationSnackBar(
{String title = 'Notification', required String message}) {
Get.log("[$title] $message", isError: false);
return GetBar(
titleText: Text(title),
messageText: Text(
message,
),
snackPosition: SnackPosition.TOP,
margin: EdgeInsets.all(20),
backgroundColor: Colors.amberAccent,
borderColor: Get.theme.focusColor.withOpacity(0.1),
icon:
Icon(Icons.notifications_none, size: 32, color: Get.theme.hintColor),
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 18),
borderRadius: 8,
duration: Duration(seconds: 5),
);
}