responsive_wrapper 2.0.0 copy "responsive_wrapper: ^2.0.0" to clipboard
responsive_wrapper: ^2.0.0 copied to clipboard

A Flutter package for building responsive UIs that adapt to different screen sizes, device types, and orientations with automatic detection.

2.0.0 #

Breaking Changes #

  • ResponsiveLayout defaults for treatLandscapePhoneAsTablet and treatPortraitTabletAsPhone changed from truefalse to be consistent with all other widgets
  • ResponsiveOrientationLayoutBuilder typedef removed — use ResponsiveLayoutBuilder instead
  • ResponsiveOrientationValue moved from responsive_wrapper.dart to src/screen_size_util.dart (still exported from the main entry point, no import changes needed)

Bug Fixes #

  • Fixed ResponsiveBreakpoints missing == and hashCode, causing incorrect ScreenInfo equality comparisons
  • Fixed inconsistent phone landscape fallback between ResponsiveOrientationLayout and ResponsiveOrientationLayoutWith — both now explicitly fall back to phonePortrait
  • Eliminated duplicated device type resolution logic — extracted to shared resolveDeviceType helper

New Features #

  • ResponsiveData InheritedWidgetResponsiveWrapper now propagates ScreenInfo to all descendants; access via ResponsiveData.of(context) or ResponsiveData.maybeOf(context)
  • ResponsiveVisibility widget — conditionally show/hide widgets by device type with visibleOnPhone, visibleOnTablet, visibleOnDesktop flags
  • New extension methods on BuildContext:
    • context.screenInfo — get ScreenInfo from tree or MediaQuery
    • context.deviceType — quick DeviceType access
    • context.isPhone, context.isTablet, context.isDesktop
    • context.isPortrait, context.isLandscape
  • ScreenInfo additions: shortestSide, longestSide, aspectRatio getters and copyWith
  • ResponsiveBreakpoints additions: copyWith, named presets ResponsiveBreakpoints.material (600/1240) and ResponsiveBreakpoints.bootstrap (576/992)
  • ResponsiveValue<T>.resolve(BuildContext) — resolve value directly from context
  • Comprehensive test suite with 4 test files covering core utilities, widgets, extensions, and visibility

Code Quality #

  • Removed duplicate ResponsiveOrientationLayoutBuilder typedef
  • Removed inline usage-example comment block from screen_size_util.dart
  • Extension methods are now consistent with a parent ResponsiveWrapper's resolved ScreenInfo

1.0.2 #

  • Added repository url
  • Updated topics
  • Added convenient extension methods for BuildContext
  • Added context.getResponsiveValue<T>() for generic responsive values
  • Added context.getResponsiveValueSimple<T>() for device-only values
  • Added context.getResponsivePadding() for EdgeInsets values
  • Added context.getResponsiveFontSize() for font size values
  • Improved developer experience with cleaner, more readable API

1.0.1 #

  • Enhanced README documentation with comprehensive preBuilder examples
  • Improved discoverability with additional pubspec.yaml tags

1.0.0 #

  • Initial release of responsive_wrapper package
  • Added ResponsiveWrapper widget for basic responsive layouts
  • Added ResponsiveWrapperWith
  • Added ResponsiveLayout for device-specific layouts
  • Added ResponsiveLayoutWith
  • Added ResponsiveOrientationLayout for orientation-aware layouts
  • Added ResponsiveOrientationLayoutWith
  • Added ResponsiveOrientationValue
  • Added ResponsiveValue
  • Added ResponsiveBreakpoints for custom breakpoint configuration
  • Added ScreenInfo class with comprehensive screen information
  • Added support for custom breakpoints and orientation handling
  • Added comprehensive documentation with examples
  • Added example app demonstrating all features
  • Full API documentation with /// comments
  • Support for pre-builders and state management integration

0.0.1 #

  • Initial release.
5
likes
160
points
129
downloads

Publisher

verified publishersaktepe.com

Weekly Downloads

A Flutter package for building responsive UIs that adapt to different screen sizes, device types, and orientations with automatic detection.

Homepage
Repository (GitHub)
View/report issues

Topics

#responsive #layout #adaptive #orientation #breakpoints

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on responsive_wrapper