scaled_app
2.3.2, released 3 months ago by hanshi.tech
Scale the entire UI design proportionally based on device size.
WASM-ready
What it does
Scales every widget, font, button, and image simultaneously across the application. It replaces standard initialization methods to apply a proportional scaling factor to the UI and MediaQuery data.
AI-written summary of version 2.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- your UI design is fixed-width
- you want to scale the entire UI proportionally, not just part of it
Skip it when
- you are building a fully responsive fluid layout that adapts per breakpoint
- you only want to scale specific components rather than the entire UI
Strengths
- scales everything simultaneously including text, images, and buttons
- simple setup by replacing runApp or WidgetsFlutterBinding
- supports enabling and disabling scaling on demand
Weaknesses
- may not suit designs that require different layouts on different screen aspect ratios
- forces a fixed-width design paradigm rather than true responsive design
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
void main() {
runAppScaled(const MyApp(), scaleFactor: (deviceSize) {
const double widthOfDesign = 375;
return deviceSize.width / widthOfDesign;
});
}Alternatives
Packages that do the same job and could replace scaled_app.
- responsive_framework
Provides robust adaptive layout, scaling, and breakpoint features for different screen sizes.
50Compare - sizer
Allows sizing widgets and fonts relative to screen width and height percentages.
63Compare