NeumorphicSoftRoundButton constructor

const NeumorphicSoftRoundButton({
  1. ShapeBorder shape = const ContinuousRectangleBorder(),
  2. Duration animationDuration = genericDuration,
  3. EdgeInsets padding = emptyPadding,
  4. EdgeInsets margin = emptyMargin,
  5. Icon? icon,
  6. String? text,
  7. Color? textColor,
  8. Size size = const Size(elementWidthOne, elementHeightOne),
  9. Color color = const Color.fromARGB(0, 0, 0, 0),
  10. Gradient? gradient,
  11. double elevationMultiplier = 1,
  12. Color? accentColor = const Color(0x00FFFFFF),
  13. Alignment? accentAligment = Alignment.center,
  14. double accentIntensity = 0,
  15. VoidCallback? onTap,
  16. bool toggle = false,
  17. Key? key,
})

Implementation

const NeumorphicSoftRoundButton(
    {this.shape = const ContinuousRectangleBorder(),
    this.animationDuration = genericDuration,
    this.padding = emptyPadding,
    this.margin = emptyMargin,
    this.icon,
    this.text,
    this.textColor,
    this.size = const Size(elementWidthOne, elementHeightOne),
    this.color = const Color.fromARGB(0, 0, 0, 0),
    this.gradient,
    this.elevationMultiplier = 1,
    this.accentColor = const Color(0x00FFFFFF),
    this.accentAligment = Alignment.center,
    this.accentIntensity = 0,
    this.onTap,
    this.toggle = false,
    super.key});