responsive_grid_layout 1.0.1
responsive_grid_layout: ^1.0.1 copied to clipboard
A powerful responsive grid widget for Flutter with automatic width calculation, animation support, and flexible layout options.
responsive_grid_layout #
A powerful, customizable responsive grid widget for Flutter with automatic width calculation and flexible layout options.
β¨ Features #
- π― Automatic width calculation - Perfect item sizing based on available space
- π± Responsive by default - Adapts to different screen sizes automatically
- π¨ Flexible layouts - Fixed or responsive modes
- β‘ High performance - Efficient rendering with builder pattern
- π Animation support - Smooth transitions when items appear
- π Loading states - Built-in skeleton loading
- π¦ Easy to use - Intuitive API with sensible defaults
πΈ Screenshots #
[Add screenshots of your examples here]
π Getting Started #
Add this to your pubspec.yaml:
dependencies:
responsive_grid_layout: ^1.0.0
Then run:
flutter pub get
π‘ Usage #
Basic Example #
import 'package:responsive_grid_layout/responsive_grid_layout.dart';
ResponsiveGrid(
itemCount: items.length,
itemsPerRow: 3,
horizontalSpacing: 16,
verticalSpacing: 16,
itemBuilder: (context, index, width) {
return MyCard(data: items[index]);
},
)
Responsive Mode #
ResponsiveGrid(
itemCount: products.length,
minItemWidth: 250, // Minimum width per item
maxItemsPerRow: 4, // Max items on large screens
itemBuilder: (context, index, width) {
return ProductCard(product: products[index]);
},
)
Using Children #
ResponsiveGrid(
itemsPerRow: 3,
children: [
Card(child: Text('Item 1')),
Card(child: Text('Item 2')),
Card(child: Text('Item 3')),
],
)
π Full Documentation #
For complete documentation, examples, and API reference, visit:
π€ Contributing #
Contributions are welcome! Please read our contributing guidelines first.
π License #
This project is licensed under the MIT License - see the LICENSE file for details.
π Support #
If you find this package useful, please consider:
- β Starring the repo
- π Liking on pub.flutter-io.cn
- π Reporting issues
- π‘ Suggesting new features
π§ Contact #
- GitHub: @yourusername
- Email: your.email@example.com