JuiSnackBar.error constructor

JuiSnackBar.error(
  1. String text, {
  2. Key? key,
})

Implementation

JuiSnackBar.error(
  String text, {
  Key? key,
}) : super(
        key: key,
        backgroundColor: JuiColors.error.shade100,
        content: _JuiSnackbarContent(
          text: text,
          color: JuiColors.black,
          icon: Icons.cancel_outlined,
        ),
        shape: const RoundedRectangleBorder(
          borderRadius: BorderRadius.vertical(
            top: Radius.circular(JuiBreakpoints.b24),
          ),
        ),
      );