Search packages, repositories and app categories

Package detailsv1.0.0+1

extra_alignments

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
29
Likes
56
Pub points
150

Install package

flutter pub add extra_alignments

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

extra_alignments is a Flutter package that extends the built-in alignment options with additional, intuitive alignments such as TopLeft, TopRight, BottomLeft, and BottomRight. These custom alignments improve layout readability and simplify positioning in complex UIs without requiring manual offset calculations. Designed for developers seeking cleaner, more expressive layout code, it integrates seamlessly with existing Flutter widgets and rendering logic. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Simplifying complex widget positioning
  • Creating responsive layouts with clear alignment semantics
  • Improving code readability in UI components
  • Reducing manual offset usage in layouts
  • Enhancing maintainability of alignment logic

Key features

  • Additional alignment constants (TopLeft, TopRight, etc)
  • Clean, semantic alignment names
  • Seamless integration with Flutter's LayoutBuilder and Align
  • Supports all Flutter platforms
  • Minimal performance overhead

Suitable for

  • Flutter developers focused on clean UI code
  • Teams prioritizing layout readability
  • Projects with frequent alignment-heavy designs
  • Developers using Align or LayoutBuilder extensively
  • Those wanting to avoid hardcoded offsets

Considerations

  • Limited to alignment-only functionality
  • No runtime configuration options
  • Requires understanding of Flutter's alignment system
  • Not suitable for dynamic alignment logic beyond predefined values
  • Best used alongside standard Flutter alignment utilities

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

extra alignments

Why should Center get all the love?

This package adds additional alignments to help make your layouts more readable.

The full set includes:

  • TopLeft
  • TopCenter
  • TopRight
  • CenterLeft
  • CenterRight
  • BottomLeft
  • BottomCenter
  • BottomRight

🔨 Installation

dependencies:
  extra_alignments: ^1.0.0+1
⚙ Import
import 'package:extra_alignments/extra_alignments.dart';

🐞 Bugs/Requests

If you encounter any problems please open an issue. If you feel the library is missing a feature, please raise a ticket on Github and we'll look into it. Pull request are welcome.

📃 License

MIT License

Categories

Source repository

Projects using this package