flutter_spacer 1.0.3 copy "flutter_spacer: ^1.0.3" to clipboard
flutter_spacer: ^1.0.3 copied to clipboard

spacer is a Dart package for Flutter for easily spacing widgets in terms of percentage of screen width or height.

example/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return FlutterSpacer(
        builder: (context) => const MaterialApp(
              home: HomeScreen(),
            ));
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Column(children: [
        const Text("First"),
        20.hs,
        Row(
          children: [const Text("second"), 20.ws, const Text("third")],
        )
      ]),
    );
  }
}
20
likes
150
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

spacer is a Dart package for Flutter for easily spacing widgets in terms of percentage of screen width or height.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_spacer