Skip to content

Quickly Build responsive flutter application with FlutterResponsiveFlexGrid. Create Responsive Grid for multiple screen sizes in Flutter.

License

Notifications You must be signed in to change notification settings

hitesh97/FlutterResponsiveFlexGrid

 
 

Repository files navigation

Flutter Responsive Flex Grid

build

Flutter package to create Responsive Grid Design like Bootstrap.

  • Adding Grid Items with weighted width
  • Adding weighted width for xs: Extra Small, sm: Small, mb: Medium, lg: Large, xl: Extra Large, xxl: Extra Extra Large Devices
  • Adding Padding between Grid Items

Installation

Use this package as a library

Depend on it

Run this command:

With Flutter:

$ flutter pub add flutter_responsive_flex_grid

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  flutter_responsive_flex_grid: ^0.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it Now in your Dart code, you can use:

import 'package:flutter_responsive_flex_grid/flutter_responsive_flex_grid.dart';

Usage

Use ResponsiveGrid Widget to create Responsive Grid, Append ResponsiveGridItem as children

ResponsiveGrid(
    gridSpacing: 8,
    children: [
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.red),
        xs: 50,
        sm: 60,
        md: 70,
        lg: 80,
        xl: 90,
        xxl: 100,
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.green),
        xs: 50,
        sm: 60,
        md: 70,
        lg: 80,
        xl: 90,
        xxl: 100,
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.blue),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.grey),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.black),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.red),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.green),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.blue),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.grey),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.black),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.yellowAccent),
      ),
      ResponsiveGridItem(
        child: _buildColorContainer(Colors.tealAccent),
      ),
    ]

Sponsor

Thanks to our sponsor Celestial Systems for building the responsive flex grid widget. If you're interested in supporting Celestial, check out how they could move your application development forward at a fraction of the cost.

About

Quickly Build responsive flutter application with FlutterResponsiveFlexGrid. Create Responsive Grid for multiple screen sizes in Flutter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 37.9%
  • C++ 32.6%
  • CMake 20.1%
  • Shell 3.4%
  • HTML 2.0%
  • C 1.9%
  • Other 2.1%