FastButton constructor
FastButton({
- double? width,
- double height = 45.0,
- List<
BoxShadow> boxShadow = const [], - double radius = 30.0,
- String text = '按钮1',
- VoidCallback? onTap,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 5.0),
- EdgeInsetsGeometry? margin,
- TextStyle style = const TextStyle(color: Colors.black, fontSize: 16.0),
- Color? color,
- bool isBorder = false,
- Gradient gradient = const LinearGradient(colors: [Color(0xff2F87FF), Color(0xff2F87FF)]),
- bool enable = true,
- int borderColor = 0xffFC6973,
- bool isShow = true,
Implementation
FastButton({
this.width,
this.height = 45.0,
this.boxShadow = const [],
this.radius = 30.0,
this.text = '按钮1',
this.onTap,
this.padding = const EdgeInsets.symmetric(horizontal: 5.0),
this.margin,
this.style = const TextStyle(color: Colors.black, fontSize: 16.0),
this.color,
this.isBorder = false,
this.gradient = const LinearGradient(
colors: [
Color(0xff2F87FF),
Color(0xff2F87FF),
],
),
this.enable = true,
this.borderColor = 0xffFC6973,
this.isShow = true,
});