ResponsiveGridView class
Wrapper around GridView. If a value is missing and is required by GridView, the GridView`s default constructor's default value will be used.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ResponsiveGridView
- Mixed in types
Constructors
-
ResponsiveGridView({Key? key, BreakpointsData<
Axis> ? scrollDirection, BreakpointsData<bool> ? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics> ? physics, BreakpointsData<bool> ? shrinkWrap, BreakpointsData<EdgeInsets> ? padding, required SliverGridDelegate gridDelegate, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, List<Widget> children = const [], int? semanticChildCount, BreakpointsData<DragStartBehavior> ? dragStartBehavior, BreakpointsData<Clip> ? clipBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior> ? keyboardDismissBehavior, String? restorationId}) - Same as GridView
-
ResponsiveGridView.builder({Key? key, BreakpointsData<
Axis> ? scrollDirection, BreakpointsData<bool> ? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics> ? physics, BreakpointsData<bool> ? shrinkWrap, BreakpointsData<EdgeInsets> ? padding, required SliverGridDelegate gridDelegate, required IndexedWidgetBuilder itemBuilder, ChildIndexGetter? findChildIndexCallback, int? itemCount, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, int? semanticChildCount, BreakpointsData<DragStartBehavior> ? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior> ? keyboardDismissBehavior, String? restorationId, BreakpointsData<Clip> ? clipBehavior}) - Same as GridView.builder.
-
ResponsiveGridView.count({Key? key, BreakpointsData<
Axis> ? scrollDirection, BreakpointsData<bool> ? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics> ? physics, BreakpointsData<bool> ? shrinkWrap, BreakpointsData<EdgeInsets> ? padding, required int crossAxisCount, double mainAxisSpacing = 0.0, double crossAxisSpacing = 0.0, double childAspectRatio = 1.0, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, List<Widget> children = const <Widget>[], int? semanticChildCount, BreakpointsData<DragStartBehavior> ? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior> ? keyboardDismissBehavior, String? restorationId, BreakpointsData<Clip> ? clipBehavior}) -
ResponsiveGridView.custom({Key? key, BreakpointsData<
Axis> ? scrollDirection, BreakpointsData<bool> ? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics> ? physics, BreakpointsData<bool> ? shrinkWrap, BreakpointsData<EdgeInsets> ? padding, required SliverGridDelegate gridDelegate, required SliverChildDelegate childrenDelegate, double? cacheExtent, int? semanticChildCount, BreakpointsData<DragStartBehavior> ? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior> ? keyboardDismissBehavior, String? restorationId, BreakpointsData<Clip> ? clipBehavior}) -
ResponsiveGridView.extent({Key? key, BreakpointsData<
Axis> ? scrollDirection, BreakpointsData<bool> ? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics> ? physics, BreakpointsData<bool> ? shrinkWrap, BreakpointsData<EdgeInsets> ? padding, required double maxCrossAxisExtent, double mainAxisSpacing = 0.0, double crossAxisSpacing = 0.0, double childAspectRatio = 1.0, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, List<Widget> children = const <Widget>[], int? semanticChildCount, BreakpointsData<DragStartBehavior> ? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior> ? keyboardDismissBehavior, String? restorationId, BreakpointsData<Clip> ? clipBehavior})
Properties
- cacheExtent → double?
-
Passed to GridView.cacheExtent.
final
- childrenDelegate → SliverChildDelegate
-
Passed to GridView.custom.
final
-
clipBehavior
→ BreakpointsData<
Clip> ? -
final
- controller → ScrollController?
-
Passed to GridView.
final
-
dragStartBehavior
→ BreakpointsData<
DragStartBehavior> ? -
final
- gridDelegate → SliverGridDelegate
-
Passed to GridView.gridDelegate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
keyboardDismissBehavior
→ BreakpointsData<
ScrollViewKeyboardDismissBehavior> ? -
final
-
padding
→ BreakpointsData<
EdgeInsets> ? -
final
-
physics
→ BreakpointsData<
ScrollPhysics> ? -
final
- primary → bool?
-
Passed to ScrollView.primary.
final
- restorationId → String?
-
Passed to GridView.restorationId.
final
-
reverse
→ BreakpointsData<
bool> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scrollDirection
→ BreakpointsData<
Axis> ? -
final
- semanticChildCount → int?
-
Passed to GridView.semanticChildCount.
final
-
shrinkWrap
→ BreakpointsData<
bool> ? -
final
Methods
-
build(
BuildContext context) → Widget -
This method should not be overridden, use buildResponsive instead.
inherited
-
buildResponsive(
BuildContext context, Breakpoints breakpoint) → Widget -
Builds with the current Breakpoints.
This method will be automatically called when the
breakpoint
changes.override -
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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}) → 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