showWarningBanner function

OverlaySupportEntry showWarningBanner(
  1. Widget message, {
  2. Key? key,
  3. Widget? subtitle,
  4. VoidCallback? onTap,
  5. Duration? duration,
  6. EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 22.0),
  7. required BuildContext context,
})

Shows a warning banner with the given message

Implementation

OverlaySupportEntry showWarningBanner(
  Widget message, {
  Key? key,
  Widget? subtitle,
  VoidCallback? onTap,
  Duration? duration,
  EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 22.0),
  required BuildContext context,
}) {
  return _showAppBanner(
    message,
    key: key,
    subtitle: subtitle,
    onTap: onTap,
    background: context.appColors.yellow,
    duration: duration,
    contentPadding: contentPadding,
    context: context,
  );
}