mobile_ultra_spacing 0.1.2
mobile_ultra_spacing: ^0.1.2 copied to clipboard
A comprehensive Flutter package for managing responsive spacing, breakpoint detection, and optical adjustments across all screen sizes.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2025-05-29 #
Added #
- Comprehensive Test Suite: Added extensive test coverage for all package components
- Unit Tests:
SpacingConstantsvalidation testsOptimizedSpacingbreakpoint detection and caching testsBreakpointenum andBreakpointCachefunctionality testsAppSpacingresponsive spacing testsOpticalAdjustmentsvisual correction tests
- Widget Tests:
Gapwidget dimension and sizing testsResponsiveBoxcontainer and padding testsResponsiveSwitchdevice-specific content switching testsFastGridlayout and RTL support testsResponsiveBuilderbreakpoint-based building testsResponsiveGridgrid layout testsResponsiveContainerconstraint and padding testsResponsiveGapsemantic spacing testsResponsivePositioneddirectional positioning tests
- Integration Tests:
- Cross-screen-size responsive behavior tests
- RTL layout integration tests
- Optical adjustments integration tests
- Performance caching validation tests
- Optical Adjustments Tests:
- Spacing adjustment calculations
- Asymmetric padding for LTR/RTL layouts
- Font size adjustments for different scripts
- Shadow generation and scaling
- Border radius optical corrections
- Text style adjustments with line height and letter spacing
- Arabic text handling and font weight mapping
- Directional padding and container balancing
- List item margin calculations
- Unit Tests:
0.1.0 - 2025-05-28 #
Added #
- Initial release of Mobile Ultra Spacing package
- 8 responsive breakpoints from phoneSmall (0px) to desktop (1200px+)
- OptimizedSpacing class with O(1) lookup performance and aggressive caching
- Semantic spacing system with xs, sm, md, lg, xl, xxl, xxxl, huge, massive sizes
- Full RTL support with directional padding and alignment helpers
- Ready-to-use widgets:
Gap- Responsive spacing widget with semantic sizesResponsiveBox- Auto-sizing container with max-width constraintsResponsiveSwitch- Device-specific widget switchingFastGrid- Performance-optimized responsive gridResponsiveBuilder- Custom responsive layout builder
- Optical adjustments based on design principles:
- Typography adjustments for better readability
- Visual spacing corrections
- Subtle shadow generation
- Container padding balancing
- Figma integration helpers for converting design values
- Performance optimizations:
- Compile-time constants for spacing scales
- Aggressive caching to avoid recalculations
- Minimal widget rebuilds
- Comprehensive breakpoint system with device type detection
- Context extensions for easy access to spacing and device checks
- ResponsiveValue class for declarative responsive values
Features #
- Ultra-fast responsive spacing with caching
- 8 precise breakpoints with automatic detection
- Complete RTL language support
- Visual perception-based optical adjustments
- Ready-to-use responsive widgets
- Figma design workflow integration
- Performance-first architecture
Supported Platforms #
- Android
- iOS
- Web
- Windows
- macOS
- Linux