CustomSnackBar.error constructor
const
CustomSnackBar.error({
- Key? key,
- required String message,
- EdgeInsetsGeometry messagePadding = const EdgeInsets.symmetric(horizontal: 24),
- Widget icon = const Icon(Icons.error_outline, color: Color(0x15000000), size: 120),
- TextStyle textStyle = const TextStyle(fontWeight: FontWeight.w600, fontSize: 16, color: Colors.white),
- int maxLines = 2,
- int iconRotationAngle = 32,
- double iconPositionTop = -10,
- double iconPositionLeft = -8,
- Color backgroundColor = const Color(0xffff5252),
- List<
BoxShadow> boxShadow = kDefaultBoxShadow, - BorderRadius borderRadius = kDefaultBorderRadius,
- double textScaleFactor = 1.0,
- TextAlign textAlign = TextAlign.center,
Implementation
const CustomSnackBar.error({
Key? key,
required this.message,
this.messagePadding = const EdgeInsets.symmetric(horizontal: 24),
this.icon = const Icon(
Icons.error_outline,
color: Color(0x15000000),
size: 120,
),
this.textStyle = const TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16,
color: Colors.white,
),
this.maxLines = 2,
this.iconRotationAngle = 32,
this.iconPositionTop = -10,
this.iconPositionLeft = -8,
this.backgroundColor = const Color(0xffff5252),
this.boxShadow = kDefaultBoxShadow,
this.borderRadius = kDefaultBorderRadius,
this.textScaleFactor = 1.0,
this.textAlign = TextAlign.center,
}) : super(key: key);