SmallMainButton constructor

const SmallMainButton({
  1. Key? key,
  2. String? title,
  3. VoidCallback? onTap,
  4. bool isEnable = true,
  5. Color? bgColor,
  6. Color textColor = Colors.white,
  7. FontWeight fontWeight = FontWeight.w600,
  8. double? fontSize,
  9. double? radius,
  10. double? maxWidth,
  11. double? width,
  12. ButtonConfig? themeData,
})

传入属性优先级最高,未传入的走默认配置,更多请看BrnSmallMainButtonConfig.defaultConfig

Implementation

const SmallMainButton({
  Key? key,
  this.title,
  this.onTap,
  this.isEnable = true,
  this.bgColor,
  this.textColor = Colors.white,
  this.fontWeight = FontWeight.w600,
  this.fontSize,
  this.radius,
  this.maxWidth,
  this.width,
  this.themeData,
}) : super(key: key);