ReorderableGridView class

Inheritance

Constructors

ReorderableGridView({required List<Widget> children, required ReorderCallback onReorder, required SliverGridDelegate gridDelegate, List<int> lockedChildren = const [], bool enableAnimation = true, bool enableLongPress = true, bool enableReorder = true, Duration longPressDelay = kLongPressTimeout, Clip clipBehavior = Clip.hardEdge, EdgeInsetsGeometry? padding, ScrollPhysics physics = const AlwaysScrollableScrollPhysics(), BoxDecoration? dragChildBoxDecoration, Key? key})
const
ReorderableGridView.count({required List<Widget> children, required int crossAxisCount, required ReorderCallback onReorder, List<int> lockedChildren = const [], bool enableAnimation = true, bool enableLongPress = true, bool enableReorder = true, Duration longPressDelay = kLongPressTimeout, double mainAxisSpacing = 0.0, EdgeInsetsGeometry? padding, Clip clipBehavior = Clip.hardEdge, ScrollPhysics physics = const AlwaysScrollableScrollPhysics(), BoxDecoration? dragChildBoxDecoration, Key? key})
const
ReorderableGridView.extent({required List<Widget> children, required ReorderCallback onReorder, required double maxCrossAxisExtent, List<int> lockedChildren = const [], bool enableAnimation = true, bool enableLongPress = true, bool enableReorder = true, Duration longPressDelay = kLongPressTimeout, double mainAxisSpacing = 0.0, Clip clipBehavior = Clip.hardEdge, double crossAxisSpacing = 0.0, double childAspectRatio = 1.0, ScrollPhysics physics = const AlwaysScrollableScrollPhysics(), EdgeInsetsGeometry? padding, BoxDecoration? dragChildBoxDecoration, Key? key})
const

Properties

childAspectRatio double
finalinherited
children List<Widget>
Adding children that should be displayed inside this widget
finalinherited
clipBehavior Clip
finalinherited
crossAxisCount int?
finalinherited
crossAxisSpacing double
finalinherited
dragChildBoxDecoration BoxDecoration?
Define a custom BoxDecoration when dragging the child.
finalinherited
enableAnimation bool
By default animation is enabled when the position of the items changes
finalinherited
enableLongPress bool
By default long press is enabled when tapping an item
finalinherited
enableReorder bool
finalinherited
gridDelegate SliverGridDelegate
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lockedChildren List<int>
finalinherited
longPressDelay Duration
By default it has a duration of 500ms before an item can be moved.
finalinherited
mainAxisSpacing double
finalinherited
maxCrossAxisExtent double
finalinherited
onReorder ReorderCallback
Every a child changes his position, this function is called.
finalinherited
padding EdgeInsetsGeometry?
finalinherited
physics ScrollPhysics?
finalinherited
reorderableType ReorderableType
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
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