CustomSnackBar.success constructor
const
CustomSnackBar.success({
- Key? key,
- required String message,
- EdgeInsetsGeometry messagePadding = const EdgeInsets.symmetric(horizontal: 24),
- Widget icon = const Icon(Icons.sentiment_very_satisfied, 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(0xff00E676),
- List<
BoxShadow> boxShadow = kDefaultBoxShadow, - BorderRadius borderRadius = kDefaultBorderRadius,
- double textScaleFactor = 1.0,
- TextAlign textAlign = TextAlign.center,
Implementation
const CustomSnackBar.success({
Key? key,
required this.message,
this.messagePadding = const EdgeInsets.symmetric(horizontal: 24),
this.icon = const Icon(
Icons.sentiment_very_satisfied,
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(0xff00E676),
this.boxShadow = kDefaultBoxShadow,
this.borderRadius = kDefaultBorderRadius,
this.textScaleFactor = 1.0,
this.textAlign = TextAlign.center,
}) : super(key: key);