Responsive class

set different layout based on current screen size (mobile, web, desktop)

Inheritance
Available extensions

Constructors

Responsive.new({Widget? web, required Widget mobile, Widget? tablet, bool? useFullWidth, double? width, double? minHeight, Widget? defaultWidget, Key? key})
const

Properties

asMaterial β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

πŸ–Ό Wraps widget in a Material widget for better Material behaviors.
no setter
centered β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

🏞 Centers a widget inside its parent.
no setter
defaultWidget β†’ Widget?
final
hashCode β†’ int
The hash code for this object.
no setterinherited
key β†’ Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minHeight β†’ double?
final
mobile β†’ Widget
final
runtimeType β†’ Type
A representation of the runtime type of the object.
no setterinherited
tablet β†’ Widget?
final
useFullWidth β†’ bool?
final
web β†’ Widget?
final
width β†’ double?
final

Methods

build(BuildContext context) β†’ Widget
Describes the part of the user interface represented by this widget.
override
center() β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

Wraps the widget with a Center widget.
cornerRadiusWithClipRRect(double radius) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

🟩 Applies a uniform corner radius to all corners.
cornerRadiusWithClipRRectOnly({double bottomLeft = 0.0, double bottomRight = 0.0, double topLeft = 0.0, double topRight = 0.0}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

🌟 Applies custom border radius to each corner using ClipRRect.
createElement() β†’ StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() β†’ List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) β†’ void
Add additional properties associated with the node.
inherited
expanded({int flex = 1}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

Wraps the widget with an Expanded widget.
fade({required double opacity, Duration duration = const Duration(milliseconds: 500)}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

🎭 Applies opacity animation to a widget.
fit({BoxFit? fit, AlignmentGeometry? alignment}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

add FittedBox to parent widget
flexible({int flex = 1, FlexFit fit = FlexFit.loose}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

Wraps the widget with a Flexible widget.
launch<T>(BuildContext context, {bool isNewTask = false, PageRouteAnimation? pageRouteAnimation, Duration? duration}) β†’ Future<T?>

Available on Widget, provided by the WidgetExtensions extension

Launch a new screen
noSuchMethod(Invocation invocation) β†’ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onTap(VoidCallback? function, {BorderRadius? borderRadius, Color? splashColor, Color? hoverColor, Color? highlightColor, Color? focusColor, WidgetStateProperty<Color?>? overlayColor}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

🎯 Adds an InkWell tap effect to a widget.
paddingAll(double value) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies equal padding on all sides.
paddingBottom(double value) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies padding only at the bottom.
paddingLeft(double value) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies padding only on the left.
paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies padding to specific sides.
paddingRight(double value) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies padding only on the right.
paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies symmetrical padding.
paddingTop(double value) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

Applies padding only at the top.
rotate({required double angle, bool transformHitTests = true, Offset? origin}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

πŸ”„ Adds rotation transformation to a widget.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) β†’ DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) β†’ String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) β†’ String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) β†’ String
Returns a one-line detailed description of the object.
inherited
toStringShort() β†’ String
A short, textual description of this widget.
inherited
validate({Widget value = const Offstage()}) β†’ Widget

Available on Widget?, provided by the WidgetExtension extension

Validate given widget is not null and returns given value if null.
visible(bool visible, {Widget? defaultWidget}) β†’ Widget

Available on Widget, provided by the PaddingExtensions extension

set visibility
withBackground(Color color) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

🎨 Wraps widget in a container with a background color.
withPadding({required EdgeInsets padding}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

Wraps the widget with a Padding widget.
withRefreshIndicator({required Future<void> onRefresh()}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

πŸ”„ Makes any widget refreshable using RefreshIndicator.
withTooltip({required String message}) β†’ Widget

Available on Widget, provided by the WidgetExtensions extension

πŸ’‘ Wraps a widget inside a tooltip.

Operators

operator ==(Object other) β†’ bool
The equality operator.
inherited