Attaching Context
Use @file references to point the AI at specific files in your prompts.
The file browser lets you explore your app’s source code. You don’t need to read or understand the code to use Primio, but browsing it can help you write more targeted prompts when making specific changes.
Access it from Workspace → Code.
Desktop: a side-by-side split panel. The file tree is on the left, and the code viewer is on the right.
Mobile: the file tree fills the screen. Tapping a file opens it in a slide-in overlay.
The left panel shows your Flutter project’s file and folder hierarchy. Expand folders to drill into the structure. Click a file to open it in the viewer.
The right panel displays code with syntax highlighting. The viewer is read-only — you can view and copy code, but all changes are made through the chat. You cannot add, rename, or delete files or folders manually.
Selecting an image file (PNG, JPG, SVG) shows a visual preview instead of code.
Type in the search field at the top to filter files by name. The tree collapses to show only matching results. Clear the search to return to the full tree.
A typical Primio Flutter project looks like this:
lib/main.dart — App entry pointlib/screens/ — Individual screen and page fileslib/widgets/ — Reusable UI componentslib/models/ — Data model classeslib/services/ — Business logic and API callspubspec.yaml — Dependencies and app configurationassets/ — Images, fonts, and other static filesYour project may vary depending on what you’ve asked the AI to build. More complex apps will have additional folders for things like state management, routing, and utilities.
The file browser pairs well with @file references in your prompts. Browse the code to find the file you want changed, then reference it directly:
“In
@file:lib/screens/home_screen.dart, change the background color to dark blue and increase the header font size.”
This tells the AI exactly where to look. See Attaching Context for full details on file references.
Attaching Context
Use @file references to point the AI at specific files in your prompts.
Working with Flutter Code
Learn more about Flutter code if you want to understand what Primio generates.