FastButton constructor

FastButton({
  1. double? width,
  2. double height = 45.0,
  3. List<BoxShadow> boxShadow = const [],
  4. double radius = 30.0,
  5. String text = '按钮1',
  6. VoidCallback? onTap,
  7. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 5.0),
  8. EdgeInsetsGeometry? margin,
  9. TextStyle style = const TextStyle(color: Colors.black, fontSize: 16.0),
  10. Color? color,
  11. bool isBorder = false,
  12. Gradient gradient = const LinearGradient(colors: [Color(0xff2F87FF), Color(0xff2F87FF)]),
  13. bool enable = true,
  14. int borderColor = 0xffFC6973,
  15. 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,
});