FLUTTER ECOSYSTEM

value_layout_builder

A LayoutBuilder with an extra value. It's useful when you want to build a widget with a value computed during layout.

Latest version
0.5.0
30-day downloads
285.2K
Likes
19
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A LayoutBuilder extension that provides an additional value during the layout process. It enables widgets to react dynamically to layout constraints while also accessing a computed value derived from those constraints. This is particularly useful for responsive designs where both size and custom logic need to be considered simultaneously. The package enhances flexibility by combining layout awareness with stateful computation, making it ideal for complex UI components that depend on both dimensions and calculated data.

Use cases
  • Responsive layouts with computed values
  • Dynamic widget sizing based on constraints
  • Complex UI components requiring layout-aware logic
  • Custom animations tied to layout changes
  • Building reusable layout widgets with internal logic
Key features
  • Extends LayoutBuilder with extra value
  • Supports dynamic value computation during layout
  • Enables responsive design with context-aware logic
  • Minimal boilerplate
  • Works across all Flutter platforms
Suitable for
  • Developers building adaptive UIs
  • UI component creators needing layout context
  • Projects requiring responsive and dynamic layouts
  • Teams using functional or declarative UI patterns
Considerations
  • Requires understanding of Flutter's layout phase
  • May add complexity for simple layouts
  • Not suitable for static or non-responsive designs
  • Performance impact if value computation is heavy
  • Limited to use within layout-building contexts
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add value_layout_builder

Categories

Source repository

Related projects