SmallMainButton constructor
const
SmallMainButton({
- Key? key,
- String? title,
- VoidCallback? onTap,
- bool isEnable = true,
- Color? bgColor,
- Color textColor = Colors.white,
- FontWeight fontWeight = FontWeight.w600,
- double? fontSize,
- double? radius,
- double? maxWidth,
- double? width,
- 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);