widgets_spacing 0.0.7 copy "widgets_spacing: ^0.0.7" to clipboard
widgets_spacing: ^0.0.7 copied to clipboard

Insert spacing between widgets. Especially for Column and Row in Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:widgets_spacing/widgets_spacing.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('Widgets Spacing Example')),
        body: Padding(
          padding: EdgeInsets.all(spacing(4)),
          child: Column(
            children: [
              const Text('First'),
              const Text('Second'),
              const Text('Third'),
            ].withSpace(2),
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
42
downloads

Publisher

verified publishereuisoft.com

Weekly Downloads

Insert spacing between widgets. Especially for Column and Row in Flutter.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, gap

More

Packages that depend on widgets_spacing