flutter_padding 0.0.2 copy "flutter_padding: ^0.0.2" to clipboard
flutter_padding: ^0.0.2 copied to clipboard

A lightweight Flutter package to add padding to widgets with clean and readable extension methods.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Easy Padding Example')),
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            const Text('All').padAll(16),
            const Text('Top').padTop(8),
            const Text('Horizontal').padH(20),
            const Text('Custom').padOnly(left: 12, bottom: 10),
          ],
        ),
      ),
    );
  }
}
4
likes
145
points
264
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package to add padding to widgets with clean and readable extension methods.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_padding