LayoutX<T extends Widget> extension

on
  • T

Properties

marginZero Container
no setter
paddingZero Padding
no setter

Methods

aspectRatio(double aspectRatio) AspectRatio
aspect ratio 纵横比
constraints({double? maxWidth, double? maxHeight, double? minWidth, double? minHeight}) ConstrainedBox
expanded() Expanded
flexible({int flex = 1, FlexFit fit = FlexFit.loose}) Flexible
height(double? height) SizedBox
inList({void onItemClick(BuildContext context, int index)?, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, bool shrinkWrap = false, EdgeInsetsGeometry? padding, double? itemExtent, Widget? prototypeItem, int? itemCount, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, int? semanticChildCount, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, String? restorationId, Clip clipBehavior = Clip.hardEdge}) ListView
todo 固定行为 的头部或尾部 todo align相关
inSliverList({void onItemClick(BuildContext context, int index)?, int? findChildIndexCallback(Key)?, int? childCount, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, int semanticIndexOffset = 0}) SliverList
margin({double left = 0, double top = 0, double right = 0, double bottom = 0}) Container
marginAll(double size) Container
marginBottom(double size) Container
marginLeft(double size) Container
marginRight(double size) Container
marginSymmetric({double horizontal = 0, double vertical = 0}) Container
marginTop(double size) Container
maxHeight(double? size) ConstrainedBox
maxWidth(double? size) ConstrainedBox
minHeight(double? size) ConstrainedBox
minWidth(double? size) ConstrainedBox
padding({double left = 0, double top = 0, double right = 0, double bottom = 0}) Padding
paddingAll(double size) Padding
paddingBottom(double size) Padding
paddingLeft(double size) Padding
paddingRight(double size) Padding
paddingSymmetric({double horizontal = 0, double vertical = 0}) Padding
paddingTop(double size) Padding
positioned({double? left, double? right, double? top, double? bottom, double? width, double? height}) Positioned
rotate(double angle) Transform
scale(double scale) Transform
size({double? width, double? height}) SizedBox
translate(double dx, double dy) Transform
width(double? width) SizedBox