CustomButtonAnimation constructor

const CustomButtonAnimation({
  1. required double height,
  2. required double width,
  3. double minWidth = 0,
  4. Widget? loader,
  5. Duration animationDuration = const Duration(milliseconds: 450),
  6. Curve curve = Curves.easeInOutCirc,
  7. Curve reverseCurve = Curves.easeInOutCirc,
  8. required Widget child,
  9. required dynamic onTap(),
  10. Color? color,
  11. Brightness? colorBrightness,
  12. double? elevation,
  13. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  14. double borderRadius = 0.0,
  15. Clip clipBehavior = Clip.none,
  16. FocusNode? focusNode,
  17. MaterialTapTargetSize? materialTapTargetSize,
  18. bool roundLoadingShape = true,
  19. BorderSide borderSide = const BorderSide(color: Colors.transparent, width: 0),
  20. double? disabledElevation,
  21. Color? disabledColor,
  22. Color? disabledTextColor,
  23. Key? key,
})

Implementation

const CustomButtonAnimation(
    {required this.height,
      required this.width,
      this.minWidth: 0,
      this.loader,
      this.animationDuration: const Duration(milliseconds: 450),
      this.curve: Curves.easeInOutCirc,
      this.reverseCurve: Curves.easeInOutCirc,
      required this.child,
      required this.onTap,
      this.color,
      // this.focusColor,
      // this.hoverColor,
      // this.highlightColor,
      // this.splashColor,
      this.colorBrightness,
      this.elevation,
      // this.focusElevation,
      // this.hoverElevation,
      // this.highlightElevation,
      this.padding: const EdgeInsets.all(0),
      this.borderRadius: 0.0,
      this.clipBehavior: Clip.none,
      this.focusNode,
      this.materialTapTargetSize,
      this.roundLoadingShape: true,
      this.borderSide: const BorderSide(color: Colors.transparent, width: 0),
      this.disabledElevation,
      this.disabledColor,
      this.disabledTextColor,
      Key? key,
    }):assert(elevation == null || elevation >= 0.0),
      assert(disabledElevation == null || disabledElevation >= 0.0),super(key: key);