layout_pro 0.0.3 layout_pro: ^0.0.3 copied to clipboard
A Flutter package that simplifies creating responsive grid views. It offers a set of methods to generate grid views with flexible configurations for various screen sizes. Easily adapt your grid layout [...]
Layout Pro #
A Flutter package that simplifies the creation of responsive GridView layouts.
Features #
- Create responsive GridView layouts with ease.
- Automatically adapts to different screen sizes.
- Provides flexibility in configuring the number of items per row and aspect ratios.
Preview #
Getting started #
To use this package in your Flutter project, follow these steps:
-
Add the following dependency to your
pubspec.yaml
file:dependencies: responsive_grid_view_builder: ^0.0.1 # Use the latest version
-
import 'package:layout_pro/responsive.dart';
For more detailed examples, check the /example folder in the package repository.
Additional Information #
- For more information about this package and how to use it, visit the package documentation on pub.dev.
- To report issues, suggest features, or contribute to the package, please visit the GitHub repository.
- We welcome contributions from the community. Feel free to create pull requests or open issues.
If you have any questions or need further assistance, please don't hesitate to reach out to the package authors or the Flutter community.
Usage #
Here's a simple example of how to use the Responsive and GridViewBuilder classes to create a responsive grid:
import 'package:flutter/material.dart';
import 'package:layout_pro/responsive.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Responsive GridView Example'),
),
body: Responsive(
mobileCrossAxisCount: 2,
mobileRatio: 1.5,
itemCount: 10,
builder: (context, index) {
return Container(
color: Colors.blue,
child: Center(
child: Text('Item $index'),
),
);
},
),
),
);
}
}