responsive_smart_grid 1.0.0 copy "responsive_smart_grid: ^1.0.0" to clipboard
responsive_smart_grid: ^1.0.0 copied to clipboard

Responsive Smart Grid is a Flutter package that provides a dynamic, adjustable grid layout for your applications. It allows developers to easily create grids with customizable spacing, decorations, pa [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:responsive_smart_grid/models/grid_item.dart';
import 'package:responsive_smart_grid/responsive_smart_grid.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: Text("Responsive Smart Grid")),
        body: SingleChildScrollView(
          child: ResponsiveSmartGrid(
            items: List.generate(
              40,
              (index) => GridItem(
                index: index,
                child: Column(mainAxisSize: MainAxisSize.min, children: [
                  Image.network(
                    'https://loremflickr.com/200/${(100 * (index + 1))}?random=${index + 1}',
                    width: double.infinity,
                    fit: BoxFit.cover,
                  ),
                  Text("Responsive Smart Grid View")
                ]),
              ),
            ),
            crossAxisCount: 2, // Number of columns
          ),
        ),
      ),
    );
  }
}
15
likes
130
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Responsive Smart Grid is a Flutter package that provides a dynamic, adjustable grid layout for your applications. It allows developers to easily create grids with customizable spacing, decorations, padding, and transformations, adapting seamlessly to different screen sizes and use cases.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on responsive_smart_grid