LitPushedThroughButton constructor

const LitPushedThroughButton({
  1. Key? key,
  2. required Widget child,
  3. Color backgroundColor = Colors.white,
  4. Color accentColor = Colors.grey,
  5. required void onPressed(),
  6. double borderRadius = 15.0,
  7. EdgeInsets padding = const EdgeInsets.all(0.0),
  8. EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8.0, horizontal: 14.0),
  9. List<BoxShadow> boxShadow = const [const BoxShadow(blurRadius: 4.0, color: Colors.black12, offset: Offset(-2.0, 2.0), spreadRadius: 1.0)],
  10. Duration animationDuration = const Duration(milliseconds: 400),
  11. bool disabled = false,
})

Create a PushedThroughButton Widget.

Implementation

const LitPushedThroughButton({
  Key? key,
  required this.child,
  this.backgroundColor = Colors.white,
  this.accentColor = Colors.grey,
  required this.onPressed,
  this.borderRadius = 15.0,
  this.padding = const EdgeInsets.all(0.0),
  this.margin = const EdgeInsets.symmetric(
    vertical: 8.0,
    horizontal: 14.0,
  ),
  this.boxShadow = const [
    const BoxShadow(
      blurRadius: 4.0,
      color: Colors.black12,
      offset: Offset(-2.0, 2.0),
      spreadRadius: 1.0,
    )
  ],
  this.animationDuration = const Duration(
    milliseconds: 400,
  ),
  this.disabled = false,
}) : super(key: key);