simple_sizedbox 1.0.0 copy "simple_sizedbox: ^1.0.0" to clipboard
simple_sizedbox: ^1.0.0 copied to clipboard

A Flutter package that provides convenient extensions for creating SizedBoxes with height and width using numerical values.

example/main.dart

import 'package:flutter/material.dart';
import 'package:simple_sizedbox/src/simple_sizedbox.dart';

/// This is a simple Flutter application demonstrating the use of the `SimpleSizedbox` extension
/// to create spacing between widgets using the `.height` and `.width` methods.
///
/// The app creates a basic UI with a single [Column] widget that includes:
/// - A vertical space of 15 pixels, created using the `15.height` extension.
/// - A [Container] widget with a blue color, height of 50 pixels, and width of 50 pixels.
///
/// The purpose of this example is to show how the `SimpleSizedbox` extension can be used
/// to make Flutter UI code more concise and readable.

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: Column(
        children: [
          15.height,  // Adds vertical space using the SimpleSizedbox extension
          Container(color: Colors.blue, height: 50, width: 50),
        ],
      ),
    ),
  ));
}
1
likes
160
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides convenient extensions for creating SizedBoxes with height and width using numerical values.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on simple_sizedbox

Packages that implement simple_sizedbox