smart_grid_view_nls 0.2.2 copy "smart_grid_view_nls: ^0.2.2" to clipboard
smart_grid_view_nls: ^0.2.2 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_nls/smart_grid_view_nls.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Example')),
        body: SmartGridView(
          tileWidth: 128,
          tileHeight: 168,
          children: List.generate(
            80,
            (index) => Card(
              child: GridTile(
                child: Text('tile #$index'),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
140
pub points
73%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smart_grid_view_nls