Skip to content
pubscout

reorderable_grid_view

2.2.8, released 3 years ago by an unverified publisher

A reorderable grid view widget for Flutter supporting drag-and-drop reordering.

WASM-ready
$ flutter pub add reorderable_grid_view
Source repository

What it does

Provides reorderable grid and sliver grid views similar to the official ReorderableListView. Allows users to drag and drop items to change their order in a grid layout with support for headers, footers, and custom drag widgets.

AI-written summary of version 2.2.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a grid layout where users can reorder items via drag and drop
  • You want support for header and footer items inside a reorderable grid

Skip it when

  • You have extremely long lists where placeholderBuilder encounters bugs
  • You require robust drag scope constraints specifically inside ReorderableSliverGridView

Strengths

  • Easy migration for developers familiar with ReorderableListView
  • Supports builder and count constructors along with sliver variants
  • Provides customization options for drag widgets and scroll speed

Weaknesses

  • Known issue with placeholderBuilder when lists are very long
  • Dragging out of scope behaves differently in ReorderableSliverGridView

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ReorderableGridView.count(
  crossAxisCount: 3,
  children: data.map((e) => Card(key: ValueKey(e), child: Text('$e'))).toList(),
  onReorder: (oldIndex, newIndex) {
    setState(() {
      final element = data.removeAt(oldIndex);
      data.insert(newIndex, element);
    });
  },
)

Alternatives

Packages that do the same job and could replace reorderable_grid_view.