NeumorphicActionContainer constructor

const NeumorphicActionContainer({
  1. ShapeBorder shape = const ContinuousRectangleBorder(),
  2. Duration animationDuration = Duration.zero,
  3. double padding = 0,
  4. double margin = 0,
  5. Widget? child,
  6. Size size = const Size(0, 0),
  7. Color color = const Color.fromARGB(0, 0, 0, 0),
  8. Gradient? gradient,
  9. Color? accentColor,
  10. Alignment? accentAligment,
  11. double accentIntensity = 0,
  12. VoidCallback? onTap,
  13. bool toggle = false,
  14. Key? key,
})

Creates a NeumorphicActionContainer widget.

The shape, animationDuration, padding, margin, size, color, and toggle arguments must not be null.

Implementation

const NeumorphicActionContainer({
  this.shape = const ContinuousRectangleBorder(),
  this.animationDuration = Duration.zero,
  this.padding = 0,
  this.margin = 0,
  this.child,
  this.size = const Size(0, 0),
  this.color = const Color.fromARGB(0, 0, 0, 0),
  this.gradient,
  this.accentColor,
  this.accentAligment,
  this.accentIntensity = 0,
  this.onTap,
  this.toggle = false,
  super.key,
});