ResponsiveGrid class
Responsive grid that adapts column count based on screen size
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ResponsiveGrid
- Available extensions
Constructors
-
ResponsiveGrid({Key? key, required List<
Widget> children, int mobileColumns = 1, int? tabletColumns, int? desktopColumns, double spacing = 16.0, double runSpacing = 16.0, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start}) -
const
Properties
-
children
→ List<
Widget> -
final
- crossAxisAlignment → CrossAxisAlignment
-
final
- desktopColumns → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
final
- mobileColumns → int
-
final
- runSpacing → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
final
- tabletColumns → int?
-
final
Methods
-
align(
Alignment alignment) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Aligns the widget -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
center(
) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Centers the widget -
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
-
decorated(
{Color? color, BorderRadius? borderRadius, Border? border, List< BoxShadow> ? boxShadow, Gradient? gradient}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds a decorated container around widget -
expand(
{int flex = 1}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Expands the widget -
flexible(
{int flex = 1, FlexFit fit = FlexFit.loose}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Makes widget flexible -
margin(
EdgeInsets margin) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin using Container -
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin to all sides -
marginOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin to specific sides -
marginSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds symmetric margin -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
padding(
EdgeInsets padding) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to widget -
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to all sides -
paddingOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to specific sides -
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds symmetric padding to widget -
responsive(
BuildContext context, {Widget mobile(Widget)?, Widget tablet(Widget)?, Widget desktop(Widget)?}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds a card-like decoration -
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited