|
| 1 | +--- |
| 2 | +slug: canvas |
| 3 | +title: Canvas |
| 4 | +tags: [] |
| 5 | +--- |
| 6 | + |
| 7 | +# Canvas |
| 8 | +The Canvas shows the mobile device screen where you can add widgets by dragging and dropping them. You can select, move, and position widgets anywhere on the Canvas. |
| 9 | + |
| 10 | +It allows zoom level adjustments and previews in light or dark mode. It also includes features for multi-language preview, adding AppBar and NavBar, simulating larger font visualization, and more. |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +## 1. Preview Screen |
| 15 | + |
| 16 | +This is the canvas of the device screen where you can build the user interface. You can customize the screen by adding widgets using drag and drop from the [Widget Palette](#) and by applying properties present in the [Properties Panel](#). |
| 17 | + |
| 18 | +## 2. Show or hide Navigation Menu |
| 19 | + |
| 20 | +From here, you can open or close the [Navigation Menu](#). |
| 21 | + |
| 22 | +## 3. Zoom Controls |
| 23 | + |
| 24 | +There's a zoom in ( + ) and a zoom out ( - ) button to control the zoom level of the canvas. While working on complex user interface designs, this comes in handy to give you a better preview of the widgets by zooming in to a particular area and then zooming out to have an overview. |
| 25 | + |
| 26 | +## 4. AI Generated Page |
| 27 | + |
| 28 | +From here, you can [create a page using AI](#). |
| 29 | + |
| 30 | +## 5. Add AppBar |
| 31 | + |
| 32 | +From here, you can add an [AppBar](#) to your page. Clicking this button opens a popup displaying different [AppBar styles](#) for you to choose from. Just select any AppBar style from the list and it will appear in the Preview Screen. |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +## 6. Multi-Language Preview |
| 37 | + |
| 38 | +If you've enabled the multi-language feature for your project, you can use this to preview your app in different languages. Just select the language from the dropdown menu, and the text in your app will be translated accordingly. |
| 39 | + |
| 40 | +:::info |
| 41 | +This becomes really helpful in testing your app design with translated text without having you run your app. |
| 42 | +::: |
| 43 | + |
| 44 | +<div style={{ |
| 45 | + position: 'relative', |
| 46 | + paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding |
| 47 | + height: 0, |
| 48 | + width: '100%' |
| 49 | +}}> |
| 50 | + <iframe |
| 51 | + src="https://demo.arcade.software/ViB374dOSglo4Z1afa0o?embed&show_copy_link=true" |
| 52 | + title="Sharing a Project with a User" |
| 53 | + style={{ |
| 54 | + position: 'absolute', |
| 55 | + top: 0, |
| 56 | + left: 0, |
| 57 | + width: '100%', |
| 58 | + height: '100%', |
| 59 | + colorScheme: 'light' |
| 60 | + }} |
| 61 | + frameborder="0" |
| 62 | + loading="lazy" |
| 63 | + webkitAllowFullScreen |
| 64 | + mozAllowFullScreen |
| 65 | + allowFullScreen |
| 66 | + allow="clipboard-write"> |
| 67 | + </iframe> |
| 68 | +</div> |
| 69 | + |
| 70 | +## 7. Dark/Light Mode |
| 71 | + |
| 72 | +This toggle lets you switch between light and dark mode in your app, allowing you to ensure your design looks great in both modes. This feature is only available if you've enabled dark mode support in your project. |
| 73 | + |
| 74 | +## 8. Display Device |
| 75 | + |
| 76 | +You can use this to show the device frame in the preview. This might come in handy if you want to visualize better or capture the user interface on a particular device. |
| 77 | + |
| 78 | +## 9. Display Resize Handle Bars |
| 79 | + |
| 80 | +Enabling the Resize Handle Bars will show the handle bards at the right and bottom sides of the preview screen. This allows you to change the size of the preview screen to better test your app on a screen with a custom resolution and the overall responsiveness of your app. |
| 81 | + |
| 82 | +## 10. Larger Font Visualization |
| 83 | + |
| 84 | +This enables you to simulate how your app appears when users adjust text scale or accessibility settings on their devices. It's vital for developing an app that's visually appealing and also accessible, especially for those requiring larger text sizes. |
| 85 | + |
| 86 | +## 11. Canvas Settings |
| 87 | + |
| 88 | +### 11.1 Safe Area |
| 89 | + |
| 90 | +When the safe area is enabled, it ensures that content isn't hidden behind physical features like camera notches, sensors, or rounded edges of the display. You can enable or disable it using the Safe Area switch. |
| 91 | + |
| 92 | +### 11.2 Resize Snapping |
| 93 | + |
| 94 | +When resizing a widget, you can snap its size to the specific pixel values or a percentage of the screen size. By default, it is set to 1 px. To change this, click here, ensure Resize Snapping is enabled, and enter the pixel or percentage value. |
| 95 | + |
| 96 | +<div style={{ |
| 97 | + position: 'relative', |
| 98 | + paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding |
| 99 | + height: 0, |
| 100 | + width: '100%' |
| 101 | +}}> |
| 102 | + <iframe |
| 103 | + src="https://demo.arcade.software/1IOtwXpNus8W4dLgdHsm?embed&show_copy_link=true" |
| 104 | + title="Sharing a Project with a User" |
| 105 | + style={{ |
| 106 | + position: 'absolute', |
| 107 | + top: 0, |
| 108 | + left: 0, |
| 109 | + width: '100%', |
| 110 | + height: '100%', |
| 111 | + colorScheme: 'light' |
| 112 | + }} |
| 113 | + frameborder="0" |
| 114 | + loading="lazy" |
| 115 | + webkitAllowFullScreen |
| 116 | + mozAllowFullScreen |
| 117 | + allowFullScreen |
| 118 | + allow="clipboard-write"> |
| 119 | + </iframe> |
| 120 | +</div> |
| 121 | + |
| 122 | +## 12. Add NavBar |
| 123 | + |
| 124 | +This button allows you to add the [NavBar](#) to your page. Clicking on this button opens the popup that allows you to enable NavBar for your project. Once the NavBar is enabled, you can customize it to match your design. |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | +--- |
| 129 | + |
| 130 | +## Video guide |
| 131 | + |
| 132 | +If you prefer watching a video tutorial, here's the one for you: |
| 133 | +<div class="video-container"><iframe width="760" height="428" src="https://www.youtube.com/embed/NDrte4nOXYc" title="The Canvas | FlutterFlow University" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div> |
| 134 | + |
| 135 | +--- |
0 commit comments