FFStackContainer constructor

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

Implementation

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