showNotificationTextToast function

void showNotificationTextToast(
  1. String title, {
  2. Duration? duration,
  3. Alignment? align,
})

Implementation

void showNotificationTextToast(String title,
    {Duration? duration, Alignment? align}) {
  showNotificationCustomToast(
    Container(
      margin: EdgeInsets.symmetric(horizontal: 16),
      child: BaseCard(
        child: Row(
          children: [
            Text(
              title,
              style: kNotificationToastTitleStyle,
            ),
          ],
        ),
        padding: EdgeInsets.symmetric(horizontal: 16, vertical: 7),
        borderRadius: kNotificationToastBorderRadius,
        color: kNotificationToastBackgroundColor,
      ),
    ),
    duration: duration,
    align: align,
  );
}