WidgetChantExt_Widget extension

extension to make it is possible to use function calling instead of Widget Constructor

For example: Container( color: Colors.white, Offstage( offstage: false, child: Text('hello'), ), ); now it is also can looks like this: Text('hello') .intoOffstage(offstage: false) .intoContainer(color: Colors.white);

on

Methods

addNeighbor(Widget widget) List<Widget>
asList() List<Widget>
intoAlign({Key key, Alignment alignment = Alignment.center, double widthFactor, double heightFactor}) Align
intoAnimatedAlign({Key key, Alignment alignment = Alignment.center, Curve curve = Curves.linear, Duration duration, VoidCallback onEnd}) AnimatedAlign
intoAnimatedContainer({Key key, Alignment alignment, EdgeInsetsGeometry padding, Color color, Decoration decoration, Decoration foregroundDecoration, double width, double height, BoxConstraints constraints, EdgeInsetsGeometry margin, Matrix4 transform, Curve curve = Curves.linear, Duration duration, VoidCallback onEnd}) AnimatedContainer
intoAnimatedPadding({Key key, EdgeInsetsGeometry padding, Curve curve = Curves.linear, Duration duration, VoidCallback onEnd}) AnimatedPadding
intoCenter({Key key, double widthFactor, double heightFactor}) Center
intoClipOval({Key key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper<Rect> clipper, Clip clipBehavior = Clip.antiAlias}) ClipOval
intoClipPath({Key key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper<Path> clipper, Clip clipBehavior = Clip.antiAlias}) ClipPath
intoClipRRect({Key key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper<RRect> clipper, Clip clipBehavior = Clip.antiAlias}) ClipRRect
intoConstrainedBox({Key key, BoxConstraints constraints}) ConstrainedBox
intoContainer({Key key, AlignmentGeometry alignment, EdgeInsetsGeometry padding, Color color, Decoration decoration, Decoration foregroundDecoration, double width, double height, BoxConstraints constraints, EdgeInsetsGeometry margin, Matrix4 transform}) Container
intoDecoratedBox({Key key, Decoration decoration, DecorationPosition position = DecorationPosition.background}) DecoratedBox
intoExpanded({Key key, int flex = 1}) Expanded
intoFittedBox({Key key, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center}) FittedBox
intoFlatButton({Key key, VoidCallback onPressed, VoidCallback onLongPress, ValueChanged<bool> onHighlightChanged, ButtonTextTheme textTheme, Color textColor, Color disabledTextColor, Color color, Color disabledColor, Color focusColor, Color hoverColor, Color highlightColor, Color splashColor, Brightness colorBrightness, EdgeInsetsGeometry padding = const EdgeInsets.all(0), ShapeBorder shape, Clip clipBehavior = Clip.none, FocusNode focusNode, bool autofocus = false, MaterialTapTargetSize materialTapTargetSize}) FlatButton
intoFlexible({Key key, int flex = 1, FlexFit fit = FlexFit.loose}) Flexible
intoGestureDetector({Key key, GestureTapDownCallback onTapDown, GestureTapUpCallback onTapUp, GestureTapCallback onTap, GestureTapCancelCallback onTapCancel, GestureTapDownCallback onSecondaryTapDown, GestureTapUpCallback onSecondaryTapUp, GestureTapCancelCallback onSecondaryTapCancel, GestureTapCallback onDoubleTap, GestureLongPressCallback onLongPress, GestureLongPressStartCallback onLongPressStart, GestureLongPressMoveUpdateCallback onLongPressMoveUpdate, GestureLongPressUpCallback onLongPressUp, GestureLongPressEndCallback onLongPressEnd, GestureDragDownCallback onVerticalDragDown, GestureDragStartCallback onVerticalDragStart, GestureDragUpdateCallback onVerticalDragUpdate, GestureDragEndCallback onVerticalDragEnd, GestureDragCancelCallback onVerticalDragCancel, GestureDragDownCallback onHorizontalDragDown, GestureDragStartCallback onHorizontalDragStart, GestureDragUpdateCallback onHorizontalDragUpdate, GestureDragEndCallback onHorizontalDragEnd, GestureDragCancelCallback onHorizontalDragCancel, GestureForcePressStartCallback onForcePressStart, GestureForcePressPeakCallback onForcePressPeak, GestureForcePressUpdateCallback onForcePressUpdate, GestureForcePressEndCallback onForcePressEnd, GestureDragDownCallback onPanDown, GestureDragStartCallback onPanStart, GestureDragUpdateCallback onPanUpdate, GestureDragEndCallback onPanEnd, GestureDragCancelCallback onPanCancel, GestureScaleStartCallback onScaleStart, GestureScaleUpdateCallback onScaleUpdate, GestureScaleEndCallback onScaleEnd, HitTestBehavior behavior, bool excludeFromSemantics = false, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) GestureDetector
intoLimitedBox({Key key, double maxWidth = double.infinity, double maxHeight = double.infinity}) LimitedBox
intoOffstage({Key key, bool offstage = true}) Offstage
intoOverflowBox({Key key, Alignment alignment = Alignment.center, double minWidth, double maxWidth, double minHeight, double maxHeight}) OverflowBox
intoPadding({Key key, EdgeInsetsGeometry padding}) Padding
intoPositioned({Key key, double left, double top, double right, double bottom, double width, double height}) Positioned
intoRotatedBox({Key key, int quarterTurns}) RotatedBox
intoSingleChildScrollView({Key key, Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry padding, bool primary, ScrollPhysics physics, ScrollController controller, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) SingleChildScrollView
intoSizedBox({Key key, double width, double height}) SizedBox
intoSizedOverflowBox({Key key, Size size, Alignment alignment = Alignment.center}) SizedOverflowBox
intoUnconstrainedBox({Key key, TextDirection textDirection, Alignment alignment = Alignment.center, Axis constrainedAxis}) UnconstrainedBox
onDoubleTap(GestureTapCallback onDoubleTap, {Key key}) GestureDetector
onLongPress(GestureLongPressCallback onLongPress, {Key key}) GestureDetector
onTap(GestureTapCallback onTap, {Key key}) GestureDetector