LitPushedThroughButton constructor
const
LitPushedThroughButton({
- Key? key,
- required Widget child,
- Color backgroundColor = Colors.white,
- Color accentColor = Colors.grey,
- required void onPressed(),
- double borderRadius = 15.0,
- EdgeInsets padding = const EdgeInsets.all(0.0),
- EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8.0, horizontal: 14.0),
- List<
BoxShadow> boxShadow = const [const BoxShadow(blurRadius: 4.0, color: Colors.black12, offset: Offset(-2.0, 2.0), spreadRadius: 1.0)], - Duration animationDuration = const Duration(milliseconds: 400),
- 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);