flutter_grid_board 0.0.1 copy "flutter_grid_board: ^0.0.1" to clipboard
flutter_grid_board: ^0.0.1 copied to clipboard

A simple Grid layout

"Buy Me A Coffee"

Flutter Grid Board - A simple grid layout #

This package allow user to create a grid layout and free of customization on how heigh and width the children would be display.

Installing and import the library: #

Like any other package, add the library to your pubspec.yaml dependencies:

dependencies:
    flutter_grid_board: <latest_version>
copied to clipboard

Then import it wherever you want to use it:

import 'package:flutter_grid_board/flutter_grid_board.dart';
copied to clipboard

Usage #

look at example folder for all use cases

Example #

Flutter grid board
GridBoard(
        columns: 5,
        rows: 4,
        showGridLines: true,
        children: [
          GridItem(
            top: 0,
            left: 0,
            spanLeft: 1,
            spanDown: 2,
            child: Container(
              color: Colors.red.withOpacity(.4),
            ),
          ),
          GridItem(
            top: 1,
            left: 0,
            spanLeft: 3,
            spanDown: 2,
            child: Container(
              color: Colors.green.withOpacity(.4),
            ),
          ),
          GridItem(
            top: 0,
            left: 1,
            spanLeft: 4,
            spanDown: 1,
            child: Container(
              color: Colors.amber.withOpacity(.4),
            ),
          ),
          GridItem(
            top: 3,
            left: 4,
            spanLeft: 1,
            spanDown: 1,
            child: Container(
              color: Colors.teal.withOpacity(.4),
            ),
          ),
        ],
      ),
copied to clipboard

Appreciate Your Feedbacks and Contributes #

If you find anything need to be improve or want to request a feature. Please go ahead and create an issue in the Github repo

2
likes
150
points
21
downloads

Publisher

verified publishersamderlust.com

Weekly Downloads

2024.08.30 - 2025.07.25

A simple Grid layout

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_grid_board