VxWidgetsExtension extension

on

Methods

asList() List<Widget>
aspectRatio(double aspectRatio) AspectRatio
Extension for aspectRatio with AspectRatio
backdropFilter({Key? key, ImageFilter? filter, double fuzzyDegree = 4}) BackdropFilter
backgroundColor(Color? color) DecoratedBox
Extension for coloring a widget with DecoratedBox
clipHalf({Clip clipBehavior = Clip.antiAlias}) ClipPath
Extension for creating a half shape using VxHalfClipper
clipOval({Clip clipBehavior = Clip.antiAlias, CustomClipper<Rect>? clipper}) Widget
Extension for creating a oval shape using ClipOval
color(Color color, {Key? key}) ColoredBox
Wrap widget with ColoredBox
constrainedBox(BoxConstraints constraints, {Key? key}) ConstrainedBox
cornerRadius(double radius) ClipRRect
Extension for adding a corner radius a widget with ClipRRect
disabled(bool disable) Widget
errorWidget(Object ex) Widget
Widget to show exception
expand({Key? key, int flex = 1}) Expanded
Extension for Expanded
fittedBox({Key? key, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center, Clip clipBehavior = Clip.none}) FittedBox
flexible({Key? key, int flex = 1}) Flexible
Extension for Flexible
foregroundColor(Color color, {Key? key}) Widget
Wrap widget with VxFilter
hero(Object tag, {Key? key, CreateRectTween? createRectTween, HeroFlightShuttleBuilder? flightShuttleBuilder, HeroPlaceholderBuilder? placeholderBuilder, bool transitionOnUserGestures = false}) Hero
hide({Key? key, bool isVisible = false, bool maintainSize = false}) Widget
Hides a widget
innerShadow({Key? key, double blur = 2.0, Color color = Colors.black38, Offset offset = const Offset(2, 2)}) Widget
Extension method for VxInnerShadow Widget
keepAlive() Widget
Extension for keepAlive
material({Key? key, MaterialType type = MaterialType.canvas, Duration animationDuration = kThemeAnimationDuration, bool borderOnForeground = true, BorderRadiusGeometry? borderRadius, Clip clipBehavior = Clip.none, Color? color, double elevation = 0.0, Color? shadowColor, ShapeBorder? shape, TextStyle? textStyle}) Widget
Extension method for Material Widget
popupMenu(MenuBuilderCallback menuBuilder, {Key? key, VxPopupMenuController? controller, Color arrowColor = const Color(0xFF4C4C4C), double arrowSize = 10.0, Color barrierColor = Colors.black12, double horizontalMargin = 10.0, double verticalMargin = 10.0, bool showArrow = true, VxClickType clickType = VxClickType.singleClick}) Widget
Popup Menu Extensions
positioned({double? top, double? bottom, double? left, double? right, double? height, double? width, bool isFilled = false}) Widget
Extension for Stack Positioned
preferredSize(Size size) PreferredSize
Maybe often use this when you want to make your own AppBar or NavigationBar with your custom UI
safeArea({Key? key, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false, bool top = true, bool bottom = true, bool left = true, bool right = true}) Widget
Extension method for SafeArea Widget
shaderMask({required Gradient gradient, Key? key, BlendMode blendMode = BlendMode.modulate}) Widget
Extension method for ShaderMask Widget
sliverToBoxAdapter({Key? key}) SliverToBoxAdapter
stroke(double width, Color color, {bool isCircle = false}) DecoratedBox
Extension for giving a stroke with DecoratedBox
tooltip(String message, {Key? key, Decoration? decoration, double? height, bool? preferBelow, EdgeInsetsGeometry? padding, TextStyle? textStyle, Duration? waitDuration, EdgeInsetsGeometry? margin}) Widget
Tooltip as accessibility
toSliverBox({Key? key}) Widget
Extension method for SliverToBoxAdapter Widget
when(bool condition) Widget
Uses when clause to render the widget only when the condition is true.