ControlsButton constructor

const ControlsButton({
  1. required String imgUrl,
  2. String tips = "",
  3. GestureTapCallback? onTap,
  4. double imgHeight = 0,
  5. double imgOffsetX = 0,
  6. double imgOffsetY = 0,
  7. Color? imgColor,
  8. Color? textColor,
  9. Duration duration = const Duration(milliseconds: 200),
  10. bool? useAnimation = false,
  11. bool isDisabled = false,
  12. Key? key,
})

Implementation

const ControlsButton(
    {required this.imgUrl,
      this.tips = "",
      this.onTap,
      this.imgHeight = 0,
      this.imgOffsetX = 0,
      this.imgOffsetY = 0,
      this.imgColor,
      this.textColor,
      this.duration = const Duration(milliseconds: 200),
      this.useAnimation = false,
      this.isDisabled = false,
      super.key});