CustomSnackBar.success constructor

const CustomSnackBar.success({
  1. Key? key,
  2. required String message,
  3. EdgeInsetsGeometry messagePadding = const EdgeInsets.symmetric(horizontal: 24),
  4. Widget icon = const Icon(Icons.sentiment_very_satisfied, color: Color(0x15000000), size: 120),
  5. TextStyle textStyle = const TextStyle(fontWeight: FontWeight.w600, fontSize: 16, color: Colors.white),
  6. int maxLines = 2,
  7. int iconRotationAngle = 32,
  8. double iconPositionTop = -10,
  9. double iconPositionLeft = -8,
  10. Color backgroundColor = const Color(0xff00E676),
  11. List<BoxShadow> boxShadow = kDefaultBoxShadow,
  12. BorderRadius borderRadius = kDefaultBorderRadius,
  13. double textScaleFactor = 1.0,
  14. 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);