FFTextButton constructor

FFTextButton({
  1. Key? key,
  2. String? text,
  3. int? maxLines,
  4. TextStyle? textStyle,
  5. double? fontSize,
  6. Color? fontColor,
  7. FontWeight? fontWeight,
  8. double? fontLineHeight = 1.0,
  9. String? fontFamily,
  10. String? notes,
  11. Function? onClick,
  12. bool? unconstrainedBox,
  13. AlignmentGeometry? alignment,
  14. EdgeInsetsGeometry? margin,
  15. EdgeInsetsGeometry? padding,
  16. Color? color,
  17. Decoration? decoration,
  18. double? width,
  19. double? heigth,
  20. bool? hiddenKeepFrame,
  21. bool? hiddenClearFrame,
})

Implementation

FFTextButton({
  Key? key,
  this.text,
  this.maxLines,
  this.textStyle,
  this.fontSize,
  this.fontColor,
  this.fontWeight,
  this.fontLineHeight = 1.0,
  this.fontFamily,
  /**注释说明 */
  String? notes,
  /**点击事件 */
  Function? onClick,
  /**是否用 UnconstrainedBox包括,默认false
 * 当设置为true,容器会自动撑到实际大小
 * 设置为false,宽高优先来自自身的宽高值,其次是父级约束
 */
  bool? unconstrainedBox,
  /**对齐方式 */
  AlignmentGeometry? alignment,
  /**外边框 */
  EdgeInsetsGeometry? margin,
  /**内边框 */
  EdgeInsetsGeometry? padding,
  /**背景颜色 */
  Color? color,
  /**装饰 */
  Decoration? decoration,
  /**宽 */
  double? width,
  /**高 */
  double? heigth,

  /**隐藏组件,但保留位置,默认值为false */
  bool? hiddenKeepFrame,
  /**隐藏组件,并清除位置,默认值为false,优先级低于hiddenKeepFrame */
  bool? hiddenClearFrame,
}) : super(
        key: key,
        notes: notes,
        onClick: onClick,
        alignment: alignment,
        margin: margin,
        padding: padding,
        color: color,
        decoration: decoration,
        width: width,
        heigth: heigth,
        unconstrainedBox: unconstrainedBox,
        hiddenKeepFrame: hiddenKeepFrame,
        hiddenClearFrame: hiddenClearFrame,
      );