layout_pro 0.0.2 layout_pro: ^0.0.2 copied to clipboard
A Package which help developers to create responsive ui.
import 'package:flutter/material.dart';
import 'package:layout_pro/responsive.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const 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'),
),
);
},
),
),
);
}
}