Skip to content
pubscout

flutter_reorderable_grid_view

5.10.0, released 3 weeks ago by karvulf.com

Animated GridViews and Wraps with drag-and-drop reordering and item animations.

WASM-readyRock solid
$ flutter pub add flutter_reorderable_grid_view
Source repository

What it does

Enables animated drag-and-drop reordering for various GridView types and Wrap widgets. Also provides smooth entrance, exit, and update animations for child items.

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

Use it when

  • You need a reorderable GridView with smooth drag-and-drop animations.
  • You want animations when items are added, removed, or updated inside a grid or wrap.

Skip it when

  • You only need a standard single-list reorderable view (use Flutter's built-in ReorderableListView instead).
  • You are not using GridView or Wrap widgets.

Strengths

  • Supports GridView, GridView.builder, and Wrap widgets.
  • Provides built-in automatic scrolling while dragging near edges.
  • Customizable animation configurations for insertions, removals, and feedback.

Weaknesses

  • Requires unique keys for every child widget.
  • Careful setup of ScrollControllers is required depending on nesting.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ReorderableBuilder(
  children: generatedChildren,
  scrollController: _scrollController,
  onReorder: (ReorderedListFunction reorderedListFunction) {
    setState(() {
      _fruits = reorderedListFunction(_fruits) as List<String>;
    });
  },
  builder: (children) {
    return GridView(
      controller: _scrollController,
      children: children,
      gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
        crossAxisCount: 4,
      ),
    );
  },
)

Alternatives

Packages that do the same job and could replace flutter_reorderable_grid_view.

Works with

Packages commonly used together with flutter_reorderable_grid_view: ones it builds on, ones built on it, and its own family.