smart_grid_view 0.2.1 copy "smart_grid_view: ^0.2.1" to clipboard
smart_grid_view: ^0.2.1 copied to clipboard

A responsive grid view that changes it's cross axis child count based on the available horizontal size.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:smart_grid_view/smart_grid_view.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Example')),
        body: SmartGridView(
          tileWidth: 128,
          tileHeight: 168,
          children: List.generate(
              80,
              (index) => Card(
                    child: GridTile(
                      child: Text('tile #$index'),
                    ),
                  )),
        ),
      ),
    );
  }
}
copied to clipboard
16
likes
30
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.23 - 2025.04.07

A responsive grid view that changes it's cross axis child count based on the available horizontal size.

Repository (GitHub)

License

unknown (license)

Dependencies

flutter

More

Packages that depend on smart_grid_view