sized_box_extension 0.0.1 copy "sized_box_extension: ^0.0.1" to clipboard
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.

example/example.dart

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,
            ],
          ),
        ),
      ),
    );
  }
}
3
likes
150
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

An extension for Flutter's SizedBox widget to make it easier to create boxes with specific widths and heights.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on sized_box_extension