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
Copy file name to clipboardExpand all lines: docs/ff-concepts/layout/responsive-layout.md
+55-1Lines changed: 55 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -196,4 +196,58 @@ To implement this, we can go to its widget properties and toggle the device icon
196
196
197
197
And now you have a more responsive screen for this shopping app use case that looks good in both mobile and desktop formats.
198
198
199
-
With these adjustments, your shopping app now boasts a highly responsive screen that seamlessly adapts to both mobile and desktop formats. This ensures an optimal user experience across all devices, maintaining both functionality and aesthetic appeal.
199
+
With these adjustments, your shopping app now boasts a highly responsive screen that seamlessly adapts to both mobile and desktop formats. This ensures an optimal user experience across all devices, maintaining both functionality and aesthetic appeal.
200
+
201
+
## Responsive Value
202
+
203
+
**Responsive Values** allow you to define different property values, such as widths, heights, font sizes, or padding, for different device sizes (mobile, tablet, desktop, and wide). At runtime, your app evaluates the screen width and automatically applies the appropriate value based on your configurations.
204
+
205
+
:::info[possible use cases]
206
+
207
+
-**Adaptive Layouts**: Automatically adjust element sizes to deliver a consistent UI across devices.
208
+
-**Better Readability**: Increase font size on larger screens to improve legibility.
209
+
-**Improved Spacing**: Use different padding or margins on tablets and desktops to optimize content flow.
210
+
211
+
:::
212
+
213
+
To set a responsive value, select a widget and choose a property that supports responsiveness. Click **Set from Variable > Responsive Value**, then enter different values for each screen size:
214
+
215
+
- Mobile (below `Breakpoint Small`)
216
+
- Tablet (below `Breakpoint Medium`)
217
+
- Desktop (below `Breakpoint Large`)
218
+
- Wide (above `Breakpoint Large`)
219
+
220
+
As you preview on different devices, the property will automatically adjust based on the selected screen size.
221
+
222
+
:::tip[Customizing Breakpoints]
223
+
224
+
You can adjust the default screen size breakpoints (mobile, tablet, desktop, wide) in FlutterFlow’s Theme Settings. See how to [**Customize Breakpoints**](#customize-responsive-breakpoints).
225
+
226
+
:::
227
+
228
+
229
+
<div style={{
230
+
position: 'relative',
231
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
0 commit comments