WidgetExt extension

on

Properties

cardWidget Widget
no setter
center Widget
no setter
editPage Widget
no setter
expanded Widget
no setter
materialRouter Route
no setter
maxWidthButton Widget
no setter
positionedFill Widget
no setter
removeScrollViewSplash Widget
no setter
topBorder Widget
no setter
toSliverWidget Widget
no setter

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?