layout
1.0.5, released 3 years ago by jaimeblasco.com
Material Design layout tool for responsive breakpoints, columns, and spacing across platforms.
What it does
Provides a Layout widget, breakpoints, fluid margins, and adaptive builders to implement responsive layouts following Material Design guidelines. It calculates screen constraints to let developers adapt UI components across different screen sizes.
AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to implement responsive layouts based on Material Design breakpoints
- You need scalable layout values relative to screen width and breakpoints
- You want to easily build adaptive views for mobile, tablet, and desktop screens
Skip it when
- You are not using Material Design guidelines
- You prefer another responsive layout solution like responsive_framework
Strengths
- Easy breakpoint management through context extensions
- Supports fluid margins and customizable layout values
- Includes AdaptiveBuilder for handling different screen sizes
Weaknesses
- Tied closely to Material Design layout conventions by default
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
return Layout(
child: MaterialApp(
home: Scaffold(
body: Margin(
child: Text('Responsive Layout'),
),
),
),
);Alternatives
Packages that do the same job and could replace layout.
- responsive_framework
Alternative approach for adapting and scaling UI across different screen sizes.
50Compare - responsive_builder
Another popular package for building responsive UI using screen type builders.
50Compare - sizer
Alternative for responsive sizing based on screen width and height percentages.
63Compare
Works with
Packages commonly used together with layout: ones it builds on, ones built on it, and its own family.