divbox 0.1.1 copy "divbox: ^0.1.1" to clipboard
divbox: ^0.1.1 copied to clipboard

A utility widget for padding and margin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:divbox/divbox.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Example'),
          centerTitle: true,
        ),
        body: DivBox(
          m: 45.0,
          mr: 80.0,
          mx: 1.0,
          child: DivBox(
            px: 12.0,
            py: 24.0,
            pt: 75.0,
            child: Text(
              'Michael Scott',
              style: TextStyle(
                fontSize: 24.0,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
120
pub points
32%
popularity

Publisher

unverified uploader

A utility widget for padding and margin.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on divbox