Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/workspace/imgs/assets.avif
Binary file not shown.
89 changes: 89 additions & 0 deletions docs/workspace/modules-panel/assets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
slug: /workspace/assets
title: Assets
description: Discover how to manage images, audio, fonts, and other files in Dreamflow’s Assets panel.
tags: [assets, dreamflow, flutter]
keywords: [assets panel, flutter assets, image management, audio files, font files, resource organization, dreamflow workspace, asset upload, asset usage]
sidebar_position: 3
---

# Assets

The **Assets** panel in Dreamflow is where you manage all the files your app needs, such as images, audio, videos, fonts, and documents. These assets are stored directly in your project, making them easy to reference and reuse across your app.

## Uploading Assets

To upload an asset, click **Upload Assets** and choose a file from your computer, or simply drag and drop it into the panel. Dreamflow will automatically organize the file into the right category (for example, a `.png` will appear under **Images**).

:::info

- You can use the search bar at the top of the Assets Panel to quickly locate files by name.
- Assets are bundled into your project when you publish or export the code.

:::


<div style={{
position: 'relative',
paddingBottom: 'calc(52.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
height: 0,
width: '100%'}}>
<iframe
src="https://demo.arcade.software/j9xa6jssFU7pazeWHvNe?embed&show_copy_link=true"
title=""
style={{
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
colorScheme: 'light'
}}
frameborder="0"
loading="lazy"
webkitAllowFullScreen
mozAllowFullScreen
allowFullScreen
allow="clipboard-write">
</iframe>
</div>
<p></p>


## Accessing Assets

Once uploaded, assets can be used directly through the [Properties Panel](../properties-panel.md) or referenced in your generated code (for example: `Image.asset('assets/images/logo.png')`).


<div style={{
position: 'relative',
paddingBottom: 'calc(52.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
height: 0,
width: '100%'}}>
<iframe
src="https://demo.arcade.software/4knXrPcj8X2PWRMp5DGx?embed&show_copy_link=true"
title=""
style={{
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
colorScheme: 'light'
}}
frameborder="0"
loading="lazy"
webkitAllowFullScreen
mozAllowFullScreen
allowFullScreen
allow="clipboard-write">
</iframe>
</div>
<p></p>


## Best Practices

- **Optimize image sizes:** Use lightweight formats like `.webp` or `.svg` to improve performance and reduce load times.
- **Use clear, descriptive names:** Give assets meaningful names (e.g., `placeholder.png` instead of `img1.png`) to make them easier to manage.
- **Avoid oversized files:** Keep videos and audio files reasonably small to ensure your app remains fast and responsive.
6 changes: 3 additions & 3 deletions docs/workspace/modules-panel/modules-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The Modules Panel enabled from the left side of the builder interface, provides

- **[Theme Module](../modules-panel/theme.md)**: Manages app theming and styling by providing tools to customize colors, fonts, typography, and design tokens across your application.

- **Assets Module**: Handles project asset management by allowing you to upload images, organize files, and manage all project resources in one centralized location.
- **[Assets Module](../modules-panel/assets.md)**: Handles project asset management by allowing you to upload images, organize files, and manage all project resources in one centralized location.

- **Firebase Module**: Configures Firebase integration for backend services including authentication, database, storage, and other Firebase-powered features.
- **[Firebase Module](../../integrations/firebase.md)**: Configures Firebase integration for backend services including authentication, database, storage, and other Firebase-powered features.

- **Supabase Module**: Sets up Supabase backend integration for database management, authentication, and real-time subscriptions to power your app's backend functionality.
- **[Supabase Module](../../integrations/supabase.md)**: Sets up Supabase backend integration for database management, authentication, and real-time subscriptions to power your app's backend functionality.