CustomReorderableListView class
Wraps ReorderableListView to allow a separator and fix indexing issue in the original Flutter widget. https://github.com/flutter/flutter/issues/24786
Inspired by: https://github.com/flutter/flutter/issues/76706
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ReorderableListView
- CustomReorderableListView
Constructors
- CustomReorderableListView.builder({Key? key, required int itemCount, required IndexedWidgetBuilder itemBuilder, required ReorderCallback onReorder, Clip clipBehavior = Clip.hardEdge, Widget? header, EdgeInsets? padding, ScrollPhysics? physics, ReorderItemProxyDecorator? proxyDecorator, bool shrinkWrap = false})
- Wraps ReorderableListView to allow a separator and fix indexing issue in the original Flutter widget. https://github.com/flutter/flutter/issues/24786
- CustomReorderableListView.separated({Key? key, required int itemCount, required IndexedWidgetBuilder itemBuilder, required IndexedWidgetBuilder separatorBuilder, required ReorderCallback onReorder, Clip clipBehavior = Clip.hardEdge, Widget? header, EdgeInsets? padding, ScrollPhysics? physics, ReorderItemProxyDecorator? proxyDecorator, bool shrinkWrap = false})
- Wraps ReorderableListView to allow a separator and fix indexing issue in the original Flutter widget. https://github.com/flutter/flutter/issues/24786
Properties
- anchor → double
-
The relative position of the zero scroll offset.
finalinherited
- autoScrollerVelocityScalar → double?
-
The velocity scalar per pixel over scroll.
finalinherited
- buildDefaultDragHandles → bool
-
If true: on desktop platforms, a drag handle is stacked over the
center of each item's trailing edge; on mobile platforms, a long
press anywhere on the item starts a drag.
finalinherited
- cacheExtent → double?
-
The viewport has an area before and after the visible area to cache items
that are about to become visible when the user scrolls.
finalinherited
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
finalinherited
- dragStartBehavior → DragStartBehavior
-
Determines the way that drag start behavior is handled.
finalinherited
-
A non-reorderable footer item to show after the items of the list.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
A non-reorderable header item to show before the items of the list.
finalinherited
- itemBuilder → IndexedWidgetBuilder
-
Called, as needed, to build list item widgets.
finalinherited
- itemCount → int
-
The number of items in the list.
finalinherited
- itemExtent → double?
-
If non-null, forces the children to have the given extent in the scroll
direction.
finalinherited
- itemExtentBuilder → ItemExtentBuilder?
-
If non-null, forces the children to have the corresponding extent returned
by the builder.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardDismissBehavior → ScrollViewKeyboardDismissBehavior
-
ScrollViewKeyboardDismissBehavior the defines how this ScrollView will
dismiss the keyboard automatically.
finalinherited
- onReorder → ReorderCallback
-
A callback used by the list to report that a list item has been dragged
to a new location in the list and the application should update the order
of the items.
finalinherited
- onReorderEnd → (void Function(int index)?)
-
A callback that is called when the dragged item is dropped.
finalinherited
- onReorderStart → (void Function(int index)?)
-
A callback that is called when an item drag has started.
finalinherited
- padding → EdgeInsets?
-
The amount of space by which to inset the list contents.
finalinherited
- physics → ScrollPhysics?
-
How the scroll view should respond to user input.
finalinherited
- primary → bool?
-
Whether this is the primary scroll view associated with the parent
PrimaryScrollController.
finalinherited
- prototypeItem → Widget?
-
If non-null, forces the children to have the same extent as the given
widget in the scroll direction.
finalinherited
- proxyDecorator → ReorderItemProxyDecorator?
-
A callback that allows the app to add an animated decoration around
an item when it is being dragged.
finalinherited
- restorationId → String?
-
Restoration ID to save and restore the scroll offset of the scrollable.
finalinherited
- reverse → bool
-
Whether the scroll view scrolls in the reading direction.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
An object that can be used to control the position to which this scroll
view is scrolled.
finalinherited
- scrollDirection → Axis
-
The Axis along which the scroll view's offset increases.
finalinherited
- shrinkWrap → bool
-
Whether the extent of the scroll view in the scrollDirection should be
determined by the contents being viewed.
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ReorderableListView> -
Creates the mutable state for this widget at a given 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