extra_alignments 1.0.0+1 copy "extra_alignments: ^1.0.0+1" to clipboard
extra_alignments: ^1.0.0+1 copied to clipboard

Additional alignments to help make your layouts more readable (TopLeft, TopRight, etc)

example/lib/main.dart

import 'package:alignments/extra_alignments.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Stack(children: [
          TopLeft(child: Text("Top Left")),
          TopCenter(child: Text("Top Center")),
          TopRight(child: Text("Top Right")),
          CenterLeft(child: Text("Center Left")),
          CenterRight(child: Text("Center Right")),
          BottomLeft(child: Text("Bottom Left")),
          BottomCenter(child: Text("Bottom Center")),
          BottomRight(child: Text("Bottom Right")),
        ]),
      ),
    );
  }
}
54
likes
140
points
6
downloads

Publisher

verified publishergskinner.com

Weekly Downloads

Additional alignments to help make your layouts more readable (TopLeft, TopRight, etc)

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on extra_alignments