gt_sizer 1.2.0 copy "gt_sizer: ^1.2.0" to clipboard
gt_sizer: ^1.2.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.2.0 #

Compatibility Upgrades 🛠️ #

  • Flutter 3.44.2 Support: Fully compatible with Flutter 3.44.2 and Dart 3.12.2 SDK.
  • Swift Package Manager (SPM): Verified compatibility with the new Flutter Swift Package Manager (SPM) dependency system for native iOS builds.
  • Environment Update: Updated SDK and Flutter constraints in pubspec.yaml and example/pubspec.yaml.

1.1.0 #

Improvements 🚀 #

Flutter SDK Upgrade

  • Upgraded project to leverage the latest stable Flutter & Dart SDKs.
  • Optimized compatibility with modern Dart features.

Performance Optimization

  • Refactored MediaQuery access to use more efficient granular fetchers.
  • Replaced MediaQuery.of(context) with MediaQuery.sizeOf(context), paddingOf(context), and viewInsetsOf(context) in ResponsiveUtils.
  • This change ensures better performance by reducing unnecessary widget rebuilds.

Maintenance

  • Internal code cleanup and adherence to Flutter best practices.
  • Verified stable behavior across Mobile, Tablet, and Desktop.

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
  • SizeManager - Static utility class for responsive sizing

    • Width sizes: w1 to w300 (22 presets)
    • Height sizes: h1 to h300 (22 presets)
    • Font sizes: f8 to f40 (12 presets)
    • Icon sizes: i12 to i64 (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
  • 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
0
likes
160
points
152
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A responsive sizing utility for Flutter with hybrid scaling for width, height, fonts, icons, and spacing across mobile, tablet, and desktop devices.

Repository (GitHub)
View/report issues

Topics

#responsive #sizer #scaling #ui #layout

License

MIT (license)

Dependencies

flutter

More

Packages that depend on gt_sizer