gt_sizer 1.0.0
gt_sizer: ^1.0.0 copied to clipboard
A responsive sizing utility for Flutter with hybrid scaling for width, height, fonts, icons, and spacing across mobile, tablet, and desktop devices.
1.0.0 #
Initial Release 🚀 #
Features
-
ResponsiveUtils - Core responsive engine with hybrid scaling
- Automatic initialization with
WidgetsBindingObserver - Screen metrics detection (width, height, safe areas)
- DPI-aware scaling with orientation tuning
- Foldable device support
- Automatic initialization with
-
SizeManager - Static utility class for responsive sizing
- Width sizes:
w1tow300(22 presets) - Height sizes:
h1toh300(22 presets) - Font sizes:
f8tof40(12 presets) - Icon sizes:
i12toi64(8 presets) - Spacing utilities:
all(),horizontal(),vertical(),symmetric(),only() - Space widgets:
horizontalSpace(),verticalSpace() - Safe area widgets:
safeAreaTopSpace,safeAreaBottomSpace, etc. - Screen values:
screenWidth,screenHeight,safeTop,safeBottom - Breakpoints:
isMobile,isTablet,isDesktop
- Width sizes:
-
SizeExtension - Num extensions for convenient scaling
.w- Width scaling.h- Height scaling.sp- Font/icon scaling
Device Support
- Mobile devices (< 600dp)
- Tablets (600dp - 1200dp)
- Desktop/Web (>= 1200dp)
- Foldable devices with aspect ratio tuning
- Landscape/Portrait orientation handling