size_helper
2.1.0, released 2 years ago by abdelazeem-kuratem.engineer
A Flutter package for responsive UI design based on screen size breakpoints.
What it does
SizeHelper provides multiple breakpoints ranging from mobile to desktop, along with context extension methods. It allows developers to supply values or builder functions per screen size, automatically falling back to the closest available option.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to adapt widget sizes, margins, or layouts across different screen sizes.
- You want a simple breakpoint-based approach without full custom media query logic.
Skip it when
- You require complex rule-based global responsive design frameworks.
- You prefer layout solutions using strictly constraints rather than discrete device size categories.
Strengths
- Includes 12 built-in breakpoints for both portrait and landscape orientations.
- Provides shorthand context extensions for easier readability.
- Automatically falls back to the closest breakpoint if an exact one is not specified.
Weaknesses
- Relies on discrete device category breakpoints rather than continuous fluid scaling.
- Limited documentation on advanced responsive scenarios.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Container(
width: SizeHelper.of(context).help(
mobileLarge: 200.0,
tableNormal: 240.0,
tabletExtraLarge: 325.0,
desktopLarge: 380.0,
)
)Alternatives
Packages that do the same job and could replace size_helper.
- responsive_builder
Provides a more extensive set of builders and layout widgets for responsive design.
50Compare - responsive_framework
Scales UI uniformly and handles responsive breakpoints at the app level.
50Compare - sizer
Alternative package for adapting screen sizes using percentage-based extensions.
63Compare
Works with
Packages commonly used together with size_helper: ones it builds on, ones built on it, and its own family.