sized_box_extension 0.0.1
sized_box_extension: ^0.0.1 copied to clipboard
An extension for Flutter's SizedBox widget to make it easier to create boxes with specific widths and heights.
import 'package:flutter/material.dart';
import 'package:sized_box_extension/sized_box_extension.dart';
class ExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar:
AppBar(title: Text('Sized Box Extension made by @flutterchiaka')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
//add this
20.widthBox,
10.heightBox,
15.box,
],
),
),
),
);
}
}