flutter_grid_button 1.1.6 copy "flutter_grid_button: ^1.1.6" to clipboard
flutter_grid_button: ^1.1.6 copied to clipboard

outdated

Flutter widget that arrange buttons in a grid. It is useful for making a number pad, calculator, and so on.

flutter_grid_button #

Flutter widget that arrange buttons in a grid. It is useful for making a number pad, calculator, and so on.

pub package

Getting Started #

To use this plugin, add flutter_grid_button as a dependency in your pubspec.yaml file.

dependencies:
 flutter_grid_button: 

Import the library in your file.

import 'package:flutter_grid_button/flutter_grid_button.dart';

See the example directory for a complete sample app using GridButton. Or use the GridButton like below.

GridButton(
  onPressed: (String value) {
    /*...*/
  },
  items: [
    [
      GridButtonItem(title: "1"),
      GridButtonItem(title: "2"),
      GridButtonItem(title: "3", flex: 2),
    ],
    [
      GridButtonItem(title: "a", value: "100"),
      GridButtonItem(title: "b", color: Colors.lightBlue)
    ],
  ],
)
26
likes
0
pub points
90%
popularity

Publisher

verified publisherzuvola.com

Flutter widget that arrange buttons in a grid. It is useful for making a number pad, calculator, and so on.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_grid_button