Search packages, repositories and app categories

reorderable_grid cover
Package detailsv1.0.13

reorderable_grid

A full reorderable grid implementations similar to flutter's native reorderable list.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
16.3K
Likes
136
Pub points
150

Install package

flutter pub add reorderable_grid

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that provides a fully functional reorderable grid, enabling users to drag and drop grid items to rearrange them dynamically. Inspired by Flutter's native ReorderableListView, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The grid maintains smooth animations and handles touch gestures efficiently, making it ideal for customizable layouts such as dashboards, photo galleries, or task boards. It integrates seamlessly with existing Flutter apps and offers a simple API for customization.

Use cases

  • Customizable dashboard layouts
  • Photo or media gallery reordering
  • Task or card-based interface rearrangement
  • User-defined widget arrangements
  • Interactive grid-based data management

Key features

  • Drag-and-drop reordering
  • Cross-platform compatibility
  • Smooth animation transitions
  • Flexible item customization
  • Built-in gesture handling

Suitable for

  • Developers building interactive grid interfaces
  • Apps requiring user-driven layout customization
  • Projects with dynamic content organization
  • Designers wanting intuitive UI interactions
  • Flutter applications targeting multiple platforms

Considerations

  • Requires careful handling of state management
  • May impact performance with large datasets
  • Needs proper padding and spacing for touch targets
  • Limited built-in styling options
  • Not optimized for extremely high item counts

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

:white_square_button: Reorderable Grid

Pub Version Likes Pub points Pub codecov

A full reorderable grid implemention similar to Flutters Reorderable_List. with full ReorderableGridView, ReorderableGrid and SliverReorderableGrid implementations

gif showing basic usage

:hammer: How it works

ReorderableGridView is a drop in replacement for the existing GridView and adds an onReorder callback that provides the original and new index of the reordered item.

/// create a new list of data
final items = List<int>.generate(40, (index) => index);

/// when the reorder completes remove the list entry from its old position
/// and insert it at its new index
void _onReorder(int oldIndex, int newIndex) {
setState(() {
    final item = items.removeAt(oldIndex);
    items.insert(newIndex, item);
});
}

@override
Widget build(BuildContext context) {
return MaterialApp(
    home: Scaffold(
      body: ReorderableGridView.extent(
        maxCrossAxisExtent: 250,
        onReorder: _onReorder,
        childAspectRatio: 1,
        children: items.map((item) {
          /// map every list entry to a widget and assure every child has a 
          /// unique key
          return Card(
            key: ValueKey(item),
            child: Center(
            child: Text(item.toString()),
            ),
          );
        }).toList(),
      ),
    ),
);
}

ReorderableGrid provides all the constructors and parameters the normal GridView has. The package also includes:

  • ReorderableGridView, which is a prebuild Material-ish implementation of the grid.
  • ReorderableGrid, A barebones widget that allows you to customize the grid however you want
  • SliverReorderableGrid, a reorderable grid sliver for custom scroll implementations

Documentation

You can find all features and fuctionality documented here

:wave: Get Involved

If this package is useful to you please :thumbsup: on pub.dev and :star: on github. If you have any Issues, recommendations or pull requests I'd love to see them!

Categories

Source repository

Projects using this package