WidgetExt extension
Methods
-
addScrollbar({ScrollController? controller})
→ Widget
-
添加滚动条
-
aspectRatio(double v)
→ Widget
-
-
border(BuildContext context, {BoxDecoration? decoration, Color? borderColor, BorderRadius? borderRadius, double width = 1.0})
→ Widget
-
-
click(VoidCallback onTap)
→ Widget
-
-
disableTextScaling(BuildContext context, ValueCopyWith<MediaQueryData> copyWith)
→ Widget
-
-
ifShow(bool show)
→ Widget
-
-
ifTrue(bool value, Widget trueWidget, [Duration? duration])
→ Widget
-
如果
value
为true, 则展示trueWidget,否则展示为本身this
-
loading(bool value)
→ Widget
-
-
longClick({required VoidCallback onLongPress})
→ Widget
-
-
marginOnly({double left = 0.0, double right = 0.0, double top = 0.0, double bottom = 0.0})
→ Widget
-
-
maxHeight(double height)
→ Widget
-
-
maxWidth(double width)
→ Widget
-
-
minHeight(double height)
→ Widget
-
-
minWidth(double width)
→ Widget
-
-
paddingOnly({double left = 0.0, double right = 0.0, double top = 0.0, double bottom = 0.0})
→ Widget
-
-
paddingWithObj(EdgeInsets edgeInsets)
→ Widget
-
-
visible(bool value)
→ Widget
-
-
visibleOrNull(bool value)
→ Widget?
-