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

A Flutter padding widget with cascading all, horizontal, vertical, and individual sides.

example/lib/main.dart

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

void main() {
  runApp(SmartPaddingExampleApp());
}

class SmartPaddingExampleApp extends StatelessWidget {
  const SmartPaddingExampleApp({super.key});

  @override
  Widget build(_) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('SmartPadding Example')),
        body: SmartPadding(
          horizontal: 16.0,
          bottom: 8.0,
          child: Text(
            'This text has 16.0 padding on the left and right '
            'and 8.0 padding on the bottom.',
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
127
downloads

Documentation

API reference

Publisher

verified publisheremptyspaces.dev

Weekly Downloads

A Flutter padding widget with cascading all, horizontal, vertical, and individual sides.

Repository (GitHub)
View/report issues

Topics

#flutter #padding #widget #layout

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smart_padding