WidgetExt extension
- on
Methods
-
extAlpha(
double opacity) → Opacity -
extCenter(
{double? width = double.infinity, double? height = double.infinity}) → Center -
extCircular(
double radius) → ClipRRect -
extContainer(
{double? width = double.infinity, double? height = double.infinity, Decoration? decoration}) → Container -
extExpanded(
{int flex = 1}) → Expanded -
extMargin(
EdgeInsetsGeometry margin) → Container -
extPadding(
EdgeInsetsGeometry padding) → Padding -
extPositioned(
{double? left, double? top, double? right, double? bottom}) → Positioned -
extSingleScrollView(
{Axis scrollDirection = Axis.vertical}) → SingleChildScrollView -
extSize(
double width, double height) → SizedBox -
extSliverAdapter(
{Key? key}) → SliverToBoxAdapter -
extVisible(
Visible visible) → Widget -
onLongPress(
VoidCallback onLongPress) → InkWell -
onTap(
VoidCallback onTap, {int? interval, bool? releaseFocus = true}) → InkWell - 默认有效点击间隔一秒,interval=0 时无间隔时间