WidgetLayoutPower 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> -
Available on Widget, provided by the WidgetLayoutPower extension
-
align(
{Key? key, Alignment alignment = Alignment.center, double? widthFactor, double? heightFactor}) → Align -
Available on Widget, provided by the WidgetLayoutPower extension
-
asList(
) → List< Widget> -
Available on Widget, provided by the WidgetLayoutPower extension
-
borderRadius(
{Key? key, required BorderRadiusGeometry? borderRadius}) → DecoratedBox -
Available on Widget, provided by the WidgetLayoutPower extension
-
card(
{Key? key, Color? color, Color? shadowColor, Color? surfaceTintColor, double? elevation, ShapeBorder? shape, bool borderOnForeground = true, EdgeInsetsGeometry? margin, Clip? clipBehavior, bool semanticContainer = true}) → Card -
Available on Widget, provided by the WidgetLayoutPower extension
-
center(
{Key? key, double? widthFactor, double? heightFactor}) → Center -
Available on Widget, provided by the WidgetLayoutPower extension
-
clipOval(
{Key? key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper< Rect> ? clipper, Clip clipBehavior = Clip.antiAlias}) → ClipOval -
Available on Widget, provided by the WidgetLayoutPower extension
-
clipPath(
{Key? key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper< Path> ? clipper, Clip clipBehavior = Clip.antiAlias}) → ClipPath -
Available on Widget, provided by the WidgetLayoutPower extension
-
clipRRect(
{Key? key, BorderRadius borderRadius = BorderRadius.zero, CustomClipper< RRect> ? clipper, Clip clipBehavior = Clip.antiAlias}) → ClipRRect -
Available on Widget, provided by the WidgetLayoutPower extension
-
container(
{Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, Clip clipBehavior = Clip.none}) → Container -
Available on Widget, provided by the WidgetLayoutPower extension
-
expanded(
{Key? key, int flex = 1}) → Expanded -
Available on Widget, provided by the WidgetLayoutPower extension
-
flatButton(
{Key? key, required 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}) → FloatingActionButton -
Available on Widget, provided by the WidgetLayoutPower extension
-
flexible(
{Key? key, int flex = 1, FlexFit fit = FlexFit.loose}) → Flexible -
Available on Widget, provided by the WidgetLayoutPower extension
-
offstage(
{Key? key, bool offstage = true}) → Offstage -
Available on Widget, provided by the WidgetLayoutPower extension
-
opacity(
{Key? key, required double opacity, dynamic alwaysIncludeSemantics = false}) → Opacity -
Available on Widget, provided by the WidgetLayoutPower extension
-
positioned(
{Key? key, double? left, double? top, double? right, double? bottom, double? width, double? height}) → Positioned -
Available on Widget, provided by the WidgetLayoutPower extension
-
safeArea(
{Key? key, bool left = false, bool top = false, bool right = false, bool bottom = true, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false}) → SafeArea -
Available on Widget, provided by the WidgetLayoutPower extension
-
singleChildScrollView(
{Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry? padding, bool? primary, ScrollPhysics? physics, ScrollController? controller, DragStartBehavior dragStartBehavior = DragStartBehavior.start}) → SingleChildScrollView -
Available on Widget, provided by the WidgetLayoutPower extension