spaced_flex 0.1.0 copy "spaced_flex: ^0.1.0" to clipboard
spaced_flex: ^0.1.0 copied to clipboard

A Flutter package for easily creating spaced row and column widgets

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Spaced Flex Demo',
      home: Scaffold(
        body: Center(
          child: SpacedColumn(
            mainAxisSize: MainAxisSize.min,
            spacing: 64,
            children: [
              SpacedRow(
                spacing: 16,
                mainAxisSize: MainAxisSize.min,
                children: const [
                  Text('Hello'),
                  Text('World!'),
                  Text(':)'),
                ],
              ),
              SpacedColumn(
                spacing: 16,
                children: const [
                  Text('Hello'),
                  Text('World!'),
                  Text(':)'),
                ],
              ),
              SpacedFlex(
                spacing: 16,
                mainAxisSize: MainAxisSize.min,
                direction: Axis.horizontal,
                reversed: true,
                children: const [
                  Text('Hello'),
                  Text('World!'),
                  Text(':)'),
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
}
6
likes
160
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for easily creating spaced row and column widgets

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on spaced_flex