Skip to main content
In this guide, you’ll learn how to:
  • Edit single or multiple elements visually.
  • Apply changes using visual tools or natural language commands.
Why use visual edit?Change your mobile app’s design by tapping directly on elements in the preview. No need to write Flutter code or navigate complex files. See changes instantly as you adjust styles, spacing, or content. It’s like using a design tool, but the changes become real code automatically.

Before you begin

You’ll need:
  • An existing Rocket project with a mobile app
  • Access to the preview panel

Getting started

Click the Edit design button in the top right corner of the preview panel.
Edit design button in the top right corner of the preview panel for mobile app.Edit design button in the top right corner of the preview panel for mobile app.
Once active, hover over any element in your mobile app preview and you’ll see it highlight, indicating it’s ready to edit.When you select an element, specific editing tools activate, allowing you to modify different aspects of the mobile UI component.

Available editing tools

When you select an element, you can use these specific tools to make changes:
  • Edit text - Modify text content directly
  • Edit style - Change colors, fonts, alignment, and other visual styles
  • Edit spacing - Adjust padding, margin, and layout spacing
  • Edit image - Replace or modify images
  • Delete element - Remove elements from your design
  • Go to code - Jump to the code view for the selected element
  • Ask for quick changes - Use natural language to make modifications
These tools are available when editing single or multiple elements.

Edit individual elements

Click any element in the mobile app preview to select it. The editing tools appear, allowing you to modify different aspects of the element.

Edit text

Modify text content directly in the mobile app preview.
  1. Select an element containing text.
  2. Click Edit text.
  3. Type your new text content.
  4. Press Enter for new line, Save changes, or click outside to close the text editor.
Editing text content of a selected element in mobile app visual edit.Editing text content of a selected element in mobile app visual edit.
Success check: The text updates immediately in the preview.

Edit style

Change colors, fonts, alignment, weight, and other visual styles for elements.
  1. Select an element.
  2. Click Edit style.
  3. Adjust the style properties you want to change.
  4. Changes appear automatically as you adjust them.
  5. Press Save changes.
Editing styles like colors, fonts, and alignment for a selected element in mobile app.Editing styles like colors, fonts, and alignment for a selected element in mobile app.
Success check: The element’s visual style updates in real-time as you make changes.

Edit spacing

Adjust padding, margin, and layout spacing for elements.
  1. Select an element.
  2. Click Edit spacing.
  3. Adjust padding and margin values.
  4. Changes apply automatically.
  5. Press Save changes.
Adjusting padding and margin spacing for a selected element in mobile app.Adjusting padding and margin spacing for a selected element in mobile app.
Success check: The element’s spacing updates immediately in the preview.

Edit image

Replace or modify images in your mobile app.
  1. Select an image element.
  2. Click Edit image.
  3. Upload a new image or modify image properties.
  4. Changes apply automatically.
  5. Press Save changes.
Replacing or modifying an image element in mobile app visual edit.Replacing or modifying an image element in mobile app visual edit.
Success check: The image updates in the preview.

Delete element

Remove elements from your mobile app.
  1. Select the element you want to remove.
  2. Click Delete element.
  3. Confirm the deletion.
  4. Press Save changes.
Deleting a selected element from the mobile app preview.Deleting a selected element from the mobile app preview.
Success check: The element is removed from the preview.

Go to code

Jump to the code view for the selected element to make more advanced changes.
  1. Select an element.
  2. Click Go to code.
  3. The code view opens showing the code for that element.
  4. Press Save or Discard to apply your changes.
Jumping to code view for a selected element in mobile app.Jumping to code view for a selected element in mobile app.
Success check: The code view opens with the selected element’s code highlighted.

Edit multiple elements

Edit multiple elements before saving to batch your changes and apply them all at once.
  1. Click the first element and use the editing tools to make your changes.
  2. Don’t save yet. Click another element in the mobile app preview.
  3. Use the editing tools to make changes to that element.
  4. Repeat for as many elements as needed.
  5. All changes are saved together automatically.
Each element keeps its own changes.For example, you can change a card element’s background color using Edit style, update a text element’s content using Edit text, and adjust a button element’s padding using Edit spacing all in one batch.
Success check: All selected elements update when changes are applied.

Ask for quick changes

With an element selected, use the Ask for quick changes tool to make modifications using natural language.Type what you want to change in any language you want. No need to use specific tools or dropdowns.How to use it:
  1. Select an element in the mobile app preview (or keep your current selection).
  2. Click Ask for quick changes.
  3. Type your change request in plain English.
  4. Press Enter or click the send button.
Example commands:
  • Make the selected button element orange with white text.
  • Set this text element to bold and center aligned.
  • Add 16px margin to the selected card element.
  • Change the background color of this container to blue.
Rocket interprets your natural language and applies the changes instantly to your elements. You can combine multiple properties in one command.
Using natural language to apply style changes to selected elements in mobile app.Using natural language to apply style changes to selected elements in mobile app.
Success check: The preview updates immediately to reflect your changes, and Rocket confirms the update.

You did it!

You can now style, align, and modify elements quickly with visual edit.