flutter_grid_item 1.0.1 flutter_grid_item: ^1.0.1 copied to clipboard
A new flutter package to create grid items easily with full customization ability. It'll be helpful for making a number pad, calculator, and so on.
flutter_grid_item #
A new flutter package to create grid items easily with full customization ability. It'll be helpful for making a number pad, calculator, and so on.
Getting Started #
To use this plugin, add flutter_grid_item
as a dependency in your pubspec.yaml file.
dependencies:
flutter_grid_item:
Import the library in your file.
import 'package:flutter_grid_item/flutter_grid_item.dart';
See the example
directory for a complete sample app using GridItem.
Or use the GridItem like below.
GridItem(
onPressed: (String value) {
/*...*/
},
items: [
[
Grid(title: "1"),
Grid(child: Text("2")),
Grid(title: "3", flex: 2),
],
[
Grid(title: "a", value: "100", longPressValue: "long"),
Grid(title: "b", color: Colors.lightBlue)
],
],
)