WidgetExt extension
- on
Properties
- cardWidget → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - center → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - editPage → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - expanded → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - materialRouter → Route
-
Available on Widget, provided by the WidgetExt extension
no setter - maxWidthButton → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - positionedFill → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - removeScrollViewSplash → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - topBorder → Widget
-
Available on Widget, provided by the WidgetExt extension
no setter - toSliverWidget → Widget
-
Available on Widget, provided by the WidgetExt extension
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 -
Available on Widget, provided by the WidgetExt extension
如果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?