align_positioned
5.1.2, released yesterday by glasberg.dev
Widget that aligns, positions, sizes, rotates and transforms a child relative to its container.
WASM-readyRock solid
What it does
Provides AlignPositioned, AnimatedAlignPositioned and AnimChain widgets to declaratively control a child’s alignment, offset, size and rotation. Supports RTL, explicit and implicit animations.
AI-written summary of version 5.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Complex layouts that are hard to achieve with Rows/Columns
- Need precise pixel or relative positioning with animation
Skip it when
- Simple layouts that can be built with standard Flutter widgets
- Performance‑critical UI where extra layout calculations may add overhead
Strengths
- Fine‑grained control over position, size and rotation
- Built‑in support for explicit and implicit animations
- RTL‑aware alignment
Weaknesses
- Adds another layer of abstraction that may increase widget tree complexity
- Limited to positioning; does not provide higher‑level UI components
- May require learning new parameter set
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
AlignPositioned(
child: MyWidget(),
alignment: Alignment.topLeft,
dx: 15.0,
moveByChildWidth: -0.5,
moveByChildHeight: -0.5,
);Alternatives
Packages that do the same job and could replace align_positioned.
- responsive_toolkit
Easy-to-use responsive tools and grid layouts for Flutter screens.
50Compare - flutter_sizer
Provides adaptive size extensions and widgets for responsive Flutter layouts.
41Compare
Works with
Packages commonly used together with align_positioned: ones it builds on, ones built on it, and its own family.