dynamic_layouts 0.3.0
dynamic_layouts: ^0.3.0 copied to clipboard
A lightweight, dependency-free Flutter package for adaptive UI rendering across mobile, tablet, and desktop screens.
0.3.0 - 2026-04-06 #
- Animated Layouts: Introduced
AnimatedAdaptiveLayout, a drop-in replacement forAdaptiveLayoutthat smoothly cross-fades between widgets when crossing breakpoints. Perfect for Desktop/Web resizing. - Global Width Clamping: Added
maxContentWidthtoAdaptiveScope. Easily prevent your UI from stretching excessively on Ultra-wide monitors by centered-constraining the entire app content. - Automatic Grid Calculation:
AdaptiveGridnow supportsmaxColumnWidth. Instead of fixed columns, the grid can automatically calculate how many items fit based on their desired width. - Flexible Scaling Basis:
ScreenConfignow supportsScaleBasis(Width, Height, ShortestSide, LongestSide). Choose exactly how yourcontext.w/h/spscales relative to your design. - Advanced Example Demo: Added a new "Advanced" navigation tab to the example app to demonstrate these new capabilities in real-time.
0.2.2 - 2026-04-04 #
- Premium Visuals & Demos: Massive update to
README.mdwith a hero image and adaptive WebP recordings demonstrating mobile/desktop layout shifts. - Documentation Assets: Organized assets into the
doc/assetsdirectory for improved package distribution.
0.2.1 - 2026-04-04 #
- Metadata Fix: Updated homepage and repository URLs in
pubspec.yamlto point to the correct GitHub repository.
0.2.0 - 2026-04-04 #
- Reactive Architecture Overhaul: Transitioned from a strict singleton model to a fully reactive
InheritedWidgetsystem (AdaptiveScope). Layouts now safely and automatically respond to window resizing natively. - Orientation & SafeArea Additions: Added
safeScreenHeightandisLandscape/isPortraitintegrations securely avoiding notches and layout occlusions natively. - Component Widgets (
AdaptiveGrid,AdaptiveNavigationScaffold,showAdaptiveModal,AdaptiveWrap,AdaptiveImage): Expanded widget toolkit handling layout logic conversions gracefully between desktop monitors and native mobile spaces automatically. - Dynamic Property Resolution: Introduced
AdaptiveValue<T>allowing robust scaling and conditional assignment of tokens (Colors, Values, Strings) corresponding to screen footprint sizes. Included built-in presets for tailored configurations: Material 3, Tailwind CSS, Bootstrap 5. - Scaling Context Utilities:
context.w(10),context.h(10),context.sp(10)extensions added to allow seamless and reactive sizing avoiding potentialScreenConfig.instanceexceptions in deeper trees. - Theme Support (
AdaptiveTheme): Effortlessly synchronize typography scopes automatically mapping them acrossThemeDatanatively. - Development HUD (
AdaptiveDebugOverlay): Shipped an overlay to visually test configurations mapping layout metrics efficiently. - Backward Compatible: Existing static implementations of
ScreenConfig.instanceand generic layout elements will not crash and compile strictly successfully.
0.1.0 #
- Initial release.
- Core setup for dynamic layout extensions natively mapping
.w,.h,.sp. - Included legacy
AdaptiveContainer,AdaptivePaddingmechanisms.