Skip to content
pubscout

flutter_grid_button

2.3.1, released 9 months ago by zuvola.com

Flutter widget that arranges buttons in a grid layout.

WASM-ready
$ flutter pub add flutter_grid_button
Source repository

What it does

Provides a GridButton widget that arranges interactive buttons in a configurable grid layout. Useful for creating number pads, calculators, and similar input interfaces.

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

Use it when

  • Building a number pad or calculator interface
  • Arranging multiple buttons in a structured grid layout

Skip it when

  • You need complex staggered grid layouts requiring advanced positioning

Strengths

  • Simple and declarative syntax for button grids
  • Supports custom items with titles, child widgets, and flex values

Weaknesses

  • Limited to basic grid arrangements

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
GridButton(
  onPressed: (String value) {
    /*...*/
  },
  items: [
    [
      GridButtonItem(title: "1"),
      GridButtonItem(child: Text("2")),
      GridButtonItem(title: "3", flex: 2),
    ],
  ],
)

Alternatives

Packages that do the same job and could replace flutter_grid_button.

Works with

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