responsive_scaler 1.0.1
responsive_scaler: ^1.0.1 copied to clipboard
A Flutter package for consistent responsive scaling of text, icons, and spacing based on screen size, helping maintain UI proportionality across devices.
1.0.1 🎉 #
- Add Deprecate message in
ResponsiveSpacingclass in favor of.rextension (e.g.,16.r) - Remove
publish_tofield from thepubspec.yamlfile
1.0.0 #
- BREAKING:
scale(value, minValue, maxValue)is now removed in favor ofvalue.scale(minValue, maxValue, type) - Add
ScaleTypeenum (width,height,radius) for explicit scaling strategies - Add
designHeightparameter toResponsiveScaler.init()for height-based scaling - Add convenient extension getters:
.w,.h,.rfor quick scaling - Add clamped extension methods:
.wc(),.hc(),.rc()with optionalminValue/maxValue - Add
widthScale,heightScale, andradiusScalestatic accessors - Add
ensureInitialized()safety check - Deprecate
ResponsiveSpacingin favor of.rextension (e.g.,16.r) - Fix logic of
preserveAccessibilityparameter and renamed it touseMaxAccessibility - Improve documentation and README
0.1.0 #
- Make the scaling logic more robust
- Remove AppTextStyles dependency, Redundant since the default TextTheme is already responsive
- Update
scaled(baseSize)toscale(baseSize, minValue, maxValue)for more developer control - Add
baseSize.scale(minValue, maxValue)helper function for easier scaling of arbitrary values - Update the Readme documentation
0.0.2 #
- Updated and improved documentation
- Migrated to flutter_lints 6.0.0 for better linting support
0.0.1 #
- Initial release
- Automatic text scaling with zero boilerplate
- Responsive icons and spacing helpers
- Accessibility support with configurable limits
- Smooth linear scaling with developer-defined design width
- Pre-defined Material 3 text styles
- Easy integration with existing apps