WidgetCommonExtension extension
- on
Methods
-
onClick(
GestureTapCallback func, {HitTestBehavior? behavior}) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
给任意部件一个点击事件 -
onLongPress(
GestureTapCallback func, {HitTestBehavior? behavior}) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
给任意部件一个长按事件 -
paddingAll(
double value) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
-
paddingOnly(
{double left = 0, double right = 0, double top = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
-
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
-
scrollView(
{ScrollPhysics? physics}) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
让一个部件变为可滑动,使用SingleChildScrollView包裹仅此而已 -
withLoading(
bool isLoading, {double size = 16, Color color = const Color(0xff027DFD)}) → Widget -
Available on Widget, provided by the WidgetCommonExtension extension
让部件进入加载状态