FFImageButton constructor

FFImageButton({
  1. Key? key,
  2. required dynamic image,
  3. String? notes,
  4. Function? onClick,
  5. bool? unconstrainedBox,
  6. AlignmentGeometry? alignment,
  7. EdgeInsetsGeometry? margin,
  8. EdgeInsetsGeometry? padding,
  9. Color? color,
  10. Decoration? decoration,
  11. double? width,
  12. double? heigth,
  13. bool? hiddenKeepFrame,
  14. bool? hiddenClearFrame,
})

Implementation

FFImageButton({
  Key? key,
  required this.image,
  /**注释说明 */
  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,
      );