boxes 1.0.1 boxes: ^1.0.1 copied to clipboard
A Dart package to easily use stackable, shorthanded SizedBoxes.
import 'package:flutter/material.dart';
import 'package:boxes/boxes.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Material App',
home: Scaffold(
appBar: AppBar(
title: const Text('Material App Bar'),
),
body: Center(
child:
// Create and manipulate sized boxes
Column(
children: [
const Text("First Widget"),
Boxes().h20().w8().w4().build(),
const Text("Last Widget"),
],
),
),
),
);
}
}