poupee 0.0.5
poupee: ^0.0.5 copied to clipboard
Layout package
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:poupee/poupee.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Vertical(
margin: EdgeInsets.only(top: 5),
parameters: const AutoFlexParameters.withSpaceBetween(
space: 5,
height: Length.between(400, 800),
boxAlignment: Alignment.topLeft,
fractionWidth: 0.5,
//fractionHeight: 2 / 3,
),
children: [
for (int i in List.generate(10, (i) => i))
Container(
decoration: BoxDecoration(
color: (i != 4) ? Colors.blueAccent : Colors.redAccent),
)
],
),
),
);
}
}