Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter_grid_button

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

flutter_grid_button

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(child: text("2")),
      gridbuttonitem(title: "3", flex: 2),
    ],
    [
      gridbuttonitem(title: "a", value: "100", longpressvalue: "long"),
      gridbuttonitem(title: "b", color: colors.lightblue)
    ],
  ],
)

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.