Skip to content
pubscout

nine_grid_view

2.0.0, released 6 years ago by an unverified publisher

NineGridView and DragSortView for displaying images in a nine‑grid layout with drag‑and‑drop sorting.

WASM-ready
$ flutter pub add nine_grid_view
Source repository

What it does

Provides a grid view that arranges images in a nine‑cell layout similar to Weibo/WeChat. It also offers a drag‑and‑drop sortable view for selecting and ordering images.

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

Use it when

  • Displaying a grid of images in a social‑media style feed
  • Showing group avatar layouts
  • Implementing image selection with drag‑and‑drop sorting

Skip it when

  • Needing advanced animations or custom physics beyond the provided drag effect
  • Requiring null‑safety or extensive testing support

Strengths

  • Simple API, no extra dependencies
  • Supports multiple grid types (WeChat, Weibo, QQ group, DingTalk group)
  • Built‑in drag‑and‑drop sorting and delete gesture

Weaknesses

  • Not migrated to null‑safety (v2.0.0 still TODO)
  • No unit or integration tests documented
  • Limited documentation beyond basic examples

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:nine_grid_view/nine_grid_view.dart';

NineGridView(
  margin: EdgeInsets.all(12),
  padding: EdgeInsets.all(5),
  space: 5,
  type: NineGridType.weChat,
  itemCount: itemCount,
  itemBuilder: (BuildContext context, int index) => Image.network(urls[index]),
);

Alternatives

Packages that do the same job and could replace nine_grid_view.