FlutterSlide constructor

const FlutterSlide({
  1. Key? key,
  2. required Function action,
  3. required Widget child,
  4. double radius = 100,
  5. bool shimmer = true,
  6. double height = 70,
  7. double? buttonSize,
  8. double width = 250,
  9. Alignment alignLabel = const Alignment(-0.2, 0),
  10. Color backgroundColor = const Color(0xffe0e0e0),
  11. Color baseColor = Colors.black87,
  12. Color buttonColor = Colors.white,
  13. Color highlightedColor = const Color.fromARGB(255, 79, 76, 76),
  14. Text? label,
  15. bool dismissible = true,
  16. double dismissThresholds = 0.75,
  17. bool disable = false,
  18. BoxDecoration? decoration,
  19. BoxDecoration? disabledDecoration,
  20. BoxDecoration? disabledButtonDecoration,
  21. BoxDecoration? buttonDecoration,
})

Implementation

const FlutterSlide(
    {Key? key,
    required this.action,
    required this.child,
    this.radius = 100,
    this.shimmer = true,
    this.height = 70,
    this.buttonSize,
    this.width = 250,
    this.alignLabel = const Alignment(-0.2, 0),
    this.backgroundColor = const Color(0xffe0e0e0),
    this.baseColor = Colors.black87,
    this.buttonColor = Colors.white,
    this.highlightedColor = const Color.fromARGB(255, 79, 76, 76),
    this.label,
    this.dismissible = true,
    this.dismissThresholds = 0.75,
    this.disable = false,
    this.decoration,
    this.disabledDecoration,
    this.disabledButtonDecoration,
    this.buttonDecoration})
    : assert((buttonSize ?? 60) <= (height)),
      super(key: key);