FloatingRibbonUtilAzul constructor

FloatingRibbonUtilAzul({
  1. Key? key,
  2. required double height,
  3. required double width,
  4. required double childHeight,
  5. required double childWidth,
  6. required Widget child,
  7. double topMargin = 0.0,
  8. Decoration? childDecoration,
  9. required Widget ribbon,
  10. double ribbonHeight = 20,
  11. Clipper clipper = Clipper.right,
  12. Color ribbonSwatch = Colors.redAccent,
  13. Color ribbonShadowSwatch = Colors.red,
  14. required double shadowHeight,
  15. double equilateralTriangleWidth = 5,
})

Creates a FloatingRibbonUtilAzul widget. FloatingRibbonUtilAzul is a widget that displays a horizontal ribbon over child.

If the ribbonTextStyle argument is null, the text will use the style from the closest enclosing DefaultTextStyle.

Implementation

FloatingRibbonUtilAzul({
  Key? key,
  required this.height,
  required this.width,
  required this.childHeight,
  required this.childWidth,
  required this.child,
  this.topMargin = 0.0,
  this.childDecoration,
  required this.ribbon,
  this.ribbonHeight = 20,
  this.clipper = Clipper.right,
  this.ribbonSwatch = Colors.redAccent,
  this.ribbonShadowSwatch = Colors.red,
  required this.shadowHeight,
  this.equilateralTriangleWidth = 5,
}) : super(key: key);