BaseProperty extension

on

Methods

absorbPointer(bool absorbing) Niku
Apply AbsorbPointer to widget
align(AlignmentGeometry align) Niku
Apply alignment to widget
animated({required Widget builder(BuildContext context, Widget child), required AnimationController animation}) Niku
Wrap widget in animated builder
animatedBuilder({required Widget builder(BuildContext context, Widget child), required AnimationController animation}) Niku
Wrap widget in animated builder
animatedContainer({Alignment? alignment, EdgeInsets? padding, Color? color, Decoration? decoration, BoxDecoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsets? margin, Matrix4? transform, AlignmentGeometry? transformAlignment, Clip clipBehavior = Clip.none, Curve curve = Curves.linear, required Duration duration, VoidCallback? onEnd}) Niku
Wrap widget in animated container
aspectRatio(double aspectRatio) Niku
Apply aspect ratio to self
backdropFilter(ImageFilter filter) Niku
Add backdrop filter to widget
backgroundColor(Color color) Niku
Apply background to widget
bg(Color color) Niku
Apply background to widget
border(Border border) Niku
Decorate with border using Border
bottomCenter() Niku
Apply widget to bottom center
bottomLeft() Niku
Apply widget to bottom left
bottomRight() Niku
Apply widget to bottom right
boxDecoration(BoxDecoration boxDecoration) Niku
Apply BoxDecoration to widget
center() Niku
Apply widget to center
centerLeft() Niku
Apply widget to center left
centerRight() Niku
Apply widget to center right
constraints(BoxConstraints constraints) Niku
Set minimum and maximum size for widget
container() Niku
Add new container to widget
expanded([int flex = 1]) Niku
Apply expanded to self
fitted() Niku
Apply FittedBox for widget
flex([int flex = 1]) Niku
Apply Flexible to widget
flexible([int flex = 1]) Niku
Apply Flexible to widget
fractionHeight(double fraction) Niku
Set height in percent
fractionSize(double width, double height) Niku
Set both width and height in percent
fractionWidth(double fraction) Niku
Set width in percent
fullHeight() Niku
Apply full width to self
fullSize() Niku
Apply both full width and height to self
fullWidth() Niku
Apply full width to self
height(double height) Niku
Set height of Widget
heightPercent(double percent) Niku
Set height in percent
heroTag(String heroTag) Niku
Apply Hero to widget
ignorePointer(bool ignoring) Niku
Apply IgnorePointer to widget
inkwell({Color? hover, Color? focus, Color? highlight, Color? splash, double? radius, bool autofocus = false, VoidCallback? onTap}) Niku
Add InkWell to widget
m(double margin) Niku
Apply margin to all side
margin(EdgeInsets margin) Niku
Apply margin using EdgeInsets
material({double elevation = 0, Color? color, Color? shadowColor}) Niku
Add Material to widget
maxHeight(double maxHeight) Niku
Set maximum height for widget
maxSize(double maxWidth, double maxHeight) Niku
Set maximum size for widget
maxWidth(double maxWidth) Niku
Set maximum width for widget
mb(double margin) Niku
Apply margin to bottom
minHeight(double minHeight) Niku
Set minimum height for widget
minSize(double minWidth, double minHeight) Niku
Set minimum size for widget
minWidth(double minWidth) Niku
Set minimum width for widget
ml(double margin) Niku
Apply margin to left side
mr(double margin) Niku
Apply margin to right side
mt(double margin) Niku
Apply margin to top
mx(double margin) Niku
Apply margin to x axis
my(double margin) Niku
Apply margin to y axis
on({void tapDown(TapDownDetails)?, void tapUp(TapUpDetails)?, VoidCallback? tap, VoidCallback? tapCancel, VoidCallback? secondaryTap, void secondaryTapDown(TapDownDetails)?, void secondaryTapUp(TapUpDetails)?, VoidCallback? secondaryTapCancel, void tertiaryTapDown(TapDownDetails)?, void tertiaryTapUp(TapUpDetails)?, VoidCallback? tertiaryTapCancel, void doubleTapDown(TapDownDetails)?, VoidCallback? doubleTap, VoidCallback? doubleTapCancel, VoidCallback? longPress, void longPressStart(LongPressStartDetails)?, void longPressMoveUpdate(LongPressMoveUpdateDetails)?, VoidCallback? longPressUp, void longPressEnd(LongPressEndDetails)?, VoidCallback? secondaryLongPress, void secondaryLongPressStart(LongPressStartDetails)?, void secondaryLongPressMoveUpdate(LongPressMoveUpdateDetails)?, VoidCallback? secondaryLongPressUp, void secondaryLongPressEnd(LongPressEndDetails)?, void verticalDragDown(DragDownDetails)?, void verticalDragStart(DragStartDetails)?, void verticalDragUpdate(DragUpdateDetails)?, void verticalDragEnd(DragEndDetails)?, VoidCallback? verticalDragCancel, void horizontalDragDown(DragDownDetails)?, void horizontalDragStart(DragStartDetails)?, void horizontalDragUpdate(DragUpdateDetails)?, void horizontalDragEnd(DragEndDetails)?, VoidCallback? horizontalDragCancel, void forcePressStart(ForcePressDetails)?, void forcePressPeak(ForcePressDetails)?, void forcePressUpdate(ForcePressDetails)?, void forcePressEnd(ForcePressDetails)?, void panDown(DragDownDetails)?, void panStart(DragStartDetails)?, void panUpdate(DragUpdateDetails)?, void panEnd(DragEndDetails)?, VoidCallback? panCancel, void scaleStart(ScaleStartDetails)?, void scaleUpdate(ScaleUpdateDetails)?, void scaleEnd(ScaleEndDetails)?}) Niku
Event Listener
opacity(double opacity) Niku
Apply opacity to widget
p(double padding) Niku
Apply padding to all side
padding(EdgeInsets padding) Niku
Apply padding using EdgeInsets
pb(double padding) Niku
Apply padding to bottom
pl(double padding) Niku
Apply padding to left side
positioned({double? top, double? left, double? bottom, double? right}) Niku
Add Positioned to widget
pr(double padding) Niku
Apply padding to right side
pt(double padding) Niku
Apply padding to top
px(double padding) Niku
Apply padding to x axis
py(double padding) Niku
Apply padding to y axis
rounded([double borderRadius = 999999]) Niku
Apply border radius to widget
scrollable({ScrollController? controller, Axis scrollDirection = Axis.vertical, bool? primary, bool reverse = false, ScrollPhysics? scrollPhysics, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId}) Niku
Add singleChildScrolLView to widget
semantics({bool container = false, bool explicitChildNodes = false, bool excludeSemantics = false, bool? enabled, bool? checked, bool? selected, bool? toggled, bool? button, bool? slider, bool? link, bool? header, bool? textField, bool? readOnly, bool? focusable, bool? focused, bool? inMutuallyExclusiveGroup, bool? obscured, bool? multiline, bool? scopesRoute, bool? namesRoute, bool? hidden, bool? image, bool? liveRegion, int? maxValueLength, int? currentValueLength, String? label, String? value, String? increasedValue, String? decreasedValue, String? hint, String? onTapHint, String? onLongPressHint, TextDirection? textDirection, SemanticsSortKey? sortKey, SemanticsTag? tagForChildren, VoidCallback? onTap, VoidCallback? onLongPress, VoidCallback? onScrollLeft, VoidCallback? onScrollRight, VoidCallback? onScrollUp, VoidCallback? onScrollDown, VoidCallback? onIncrease, VoidCallback? onDecrease, VoidCallback? onCopy, VoidCallback? onCut, VoidCallback? onPaste, VoidCallback? onDismiss, MoveCursorHandler? onMoveCursorForwardByCharacter, MoveCursorHandler? onMoveCursorBackwardByCharacter, SetSelectionHandler? onSetSelection, VoidCallback? onDidGainAccessibilityFocus, VoidCallback? onDidLoseAccessibilityFocus, Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions}) Niku
Add semantic to widget
shadows(List<BoxShadow> shadows) Niku
Add shadows to widget
singleChildScrollView({ScrollController? controller, Axis scrollDirection = Axis.vertical, bool? primary, bool reverse = false, ScrollPhysics? scrollPhysics, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId}) Niku
Add singleChildScrolLView to widget
size(double width, double height) Niku
Set height of Widget
sizePercent(double width, double height) Niku
Set height in percent
tooltip(String tip) Niku
Apply tooltip to widget
topCenter() Niku
Apply widget to top center
topLeft() Niku
Apply widget to top left
topRight() Niku
Apply widget to top right
transform(Matrix4 transform) Niku
Apply transform to widget
width(double width) Niku
Set width of widget
widthPercent(double percent) Niku
Set width in percent