Releases: muhammadkamel/flutter_screenutil_plus
Releases · muhammadkamel/flutter_screenutil_plus
Release v1.5.0
[1.5.0] - 2026-02-23
Added
- Benchmark Suite: Added a comprehensive suite of microbenchmarks and integration benchmarks. The suite measures layout calculation overhead, deep tree frame build times, scrolling raster times, and orientation rebuilds. Automatically compares execution times against standard native layouts and
flutter_screenutil. - ResponsiveGrid Widget: Introduced a new
ResponsiveGridwidget for easily creating adaptive layouts relying on device constraints.
Changed
- Performance Refactoring: Removed the
SUmixin and theScreenUtilPlusInittree-walking mechanisms to eliminate severe widget rebuilding bottlenecks, significantly improving scaling efficiencies across deep widget cascades. - Scaling Fixes: Fixed layout resolution in
AdaptiveValuesto prevent elements from being unintentionally double-scaled.
v1.3.1
Changed
- Refactoring: Core logic improvements for better maintainability and performance.
- Simplified
ScreenUtilPlussingleton and initialization logic. - Optimized
AdaptiveContainerproperty handling.
- Simplified
- Robustness: Improved
ScreenUtilPlusInitto robustly handle nestedMediaQuerydata, falling back toView.maybeOfonly when necessary.
Added
- Tests: Added dedicated tests for initialization fallback logic to ensure correct behavior in various widget tree configurations.
v1.3.0
Added
- Default Initialization:
ScreenUtilPlusfields now initialize with default values (defaultSizeof 360x690) instead of empty/zero values, preventing issues when accessed before explicit configuration. - Optional Configuration:
designSizeparameter ininit,configure, andScreenUtilPlusInitis now optional, defaulting to 360x690. This allows for simpler setup when using standard defaults.
v1.2.2
Changed
- Revert:
designSizeparameter inScreenUtilPlus.initandScreenUtilPlusInitis now required again. The previous change to make it optional was reverted to ensure explicit configuration.
Fixed
- Crash Fix: Fixed
LateInitializationErrorinScreenUtilPlus.configurewhen called with null parameters before initialization. Added default values for internal flags to prevent this crash.