ResponsiveListView class

Wrapper around ListView. If a value is missing and is required by ListView, the ListView's default constructor's default value will be used.

Inheritance
Mixed in types

Constructors

ResponsiveListView({Key? key, BreakpointsData<Axis>? scrollDirection, BreakpointsData<bool>? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics>? physics, BreakpointsData<bool>? shrinkWrap, BreakpointsData<EdgeInsets>? padding, double? cacheExtent, BreakpointsData<DragStartBehavior>? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior>? keyboardDismissBehavior, BreakpointsData<Clip>? clipBehavior, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, List<Widget> children = const []})
Same as ListView
ResponsiveListView.builder({Key? key, BreakpointsData<Axis>? scrollDirection, BreakpointsData<bool>? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics>? physics, BreakpointsData<bool>? shrinkWrap, BreakpointsData<EdgeInsets>? padding, double? cacheExtent, BreakpointsData<DragStartBehavior>? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior>? keyboardDismissBehavior, BreakpointsData<Clip>? clipBehavior, required IndexedWidgetBuilder itemBuilder, int? itemCount, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true})
Same as ListView.builder
ResponsiveListView.custom({Key? key, BreakpointsData<Axis>? scrollDirection, BreakpointsData<bool>? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics>? physics, BreakpointsData<bool>? shrinkWrap, BreakpointsData<EdgeInsets>? padding, double? cacheExtent, BreakpointsData<DragStartBehavior>? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior>? keyboardDismissBehavior, BreakpointsData<Clip>? clipBehavior, required SliverChildDelegate childrenDelegate, required IndexedWidgetBuilder itemBuilder, required IndexedWidgetBuilder separatorBuilder, required int itemCount, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true})
Same as ListView.custom
const
ResponsiveListView.separated({Key? key, BreakpointsData<Axis>? scrollDirection, BreakpointsData<bool>? reverse, ScrollController? controller, bool? primary, BreakpointsData<ScrollPhysics>? physics, BreakpointsData<bool>? shrinkWrap, BreakpointsData<EdgeInsets>? padding, double? cacheExtent, BreakpointsData<DragStartBehavior>? dragStartBehavior, BreakpointsData<ScrollViewKeyboardDismissBehavior>? keyboardDismissBehavior, BreakpointsData<Clip>? clipBehavior, required IndexedWidgetBuilder itemBuilder, required IndexedWidgetBuilder separatorBuilder, required int itemCount, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true})
Same as ListView.separated

Properties

cacheExtent double?
Passed to ListView.cacheExtent.
final
childrenDelegate SliverChildDelegate
Passed to ListView.custom.
final
clipBehavior BreakpointsData<Clip>?
final
controller ScrollController?
Passed to ListView.
final
dragStartBehavior BreakpointsData<DragStartBehavior>?
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
reverse BreakpointsData<bool>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection BreakpointsData<Axis>?
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