You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flutter's default behavior is resize so AutoScale is `false` and off by default.
73
+
Flutter's default behavior is resize which Responsive Framework respects. AutoScale is off by default and can be enabled at breakpoints by setting `autoScale` to `true`.
74
74
75
75
## Breakpoints
76
76
@@ -96,11 +96,12 @@ These concepts helps you start using the Responsive Framework and build an respo
96
96
97
97
### Scale vs Resize
98
98
99
-
Flutter's default behavior is to resize your layout when the screen dimensions change. Resizing a layout stretches it in the unbounded width or height direction. Any fixed or bounded dimension stays the same which is why a mobile app's UI looks small on a desktop.
99
+
Flutter's default behavior is to resize your layout when the screen dimensions change. Resizing a layout stretches it in the direction of an unconstrained width or height. Any constrained dimension stays fixed which is why mobile app UIs look tiny on desktop. The following example illustrates the difference between resizing and scaling.
To understand the difference between resizing and scaling, take the following example.
102
103
An AppBar widget looks correct on a phone. When viewed on a desktop however, the AppBar is too short and the title looks too small.
103
-
Here is what happens with each behavior:
104
+
Here is what happens under each behavior:
104
105
1. Resizing (default) - the AppBar's width is double.infinity so it stretches to fill the available width. The Toolbar height is fixed and stays 56dp.
105
106
2. Scaling - the AppBar's width stretches to fill the available width. The height scales proportionally using an aspect ratio automatically calculated from the nearest `ResponsiveBreakpoint`. As the width increases, the height increases proportionally.
106
107
@@ -127,20 +128,48 @@ ResponsiveWrapper(
127
128
```
128
129
129
130
An arbitrary number of breakpoints can be set. Resizing/scaling behavior can be mixed and matched.
130
-
- below 450: resize on small screens to avoid cramp and overflow errors.
131
-
- 800-450: resize on phones for native widget sizes.
132
-
- 1000-800: scale on tablets to avoid elements appearing too small.
133
-
- 1200-1000: resize on desktops to use available space.
134
-
- 2460+: scale on extra large 4K displays so text is still legible and widgets are not spaced too far apart.
131
+
- below 450: resize on small screens to avoid cramp and overflow errors.
132
+
- 800-450: resize on phones for native widget sizes.
133
+
- 1000-800: scale on tablets to avoid elements appearing too small.
134
+
- 1200-1000: resize on desktops to use available space.
135
+
- 2460+: scale on extra large 4K displays so text is still legible and widgets are not spaced too far apart.
135
136
136
137
## About
137
138
138
-
Responsive Framework was created to provide a better way for people to build responsive apps and websites. The ability to automatically adapt UI to different sizes opens up a world of new possibilities. Here at Codelessly, we're working on #NoCode and code generation automation tools to make those possibilities happen. If you are thinking about building a website builder, drop us a line below 😎
139
+
Responsive Framework was created out of a desire for a better way to manage responsiveness. The ability to automatically adapt UI to different sizes opens up a world of possibilities. Here at Codelessly, we're working on #NoCode and code generation automation tools to increase productivity. If you are interested in building a website builder powered by computer vision, drop us a line below 😎
139
140
140
-
Responsive Framework is licensed under Zero-Clause BSD and released as Emailware. If you like this project or it helped you, please subscribe to updates. Although it is not required, you might miss some important information!
141
+
Responsive Framework is licensed under Zero-Clause BSD and released as Emailware. If you like this project or it helped you, please subscribe to updates. Although it is not required, you might miss the goodies we share!
@@ -170,7 +199,7 @@ Responsive Framework is licensed under Zero-Clause BSD and released as Emailware
170
199
</a>
171
200
<br></br>
172
201
173
-
Flutter is a game-changing technology that will revolutionize not just development, but software itself. A big thank you to the Flutter team for building such an amazing platform and being giants we can stand on.
202
+
Flutter is a game-changing technology that will revolutionize not just development, but software itself. A big thank you to the Flutter team for building such an amazing platform 💙
0 commit comments