Skip to main content

Export Code

Easily export code for single or multiple screens, directly from Figma or DhiWise. Within a few clicks export code, add the code to your existing apps or start creating a new one.

Using DhiWise Figma Plugin

While using DhiWise Figma-to-code plugin in Figma for your app’s design, you can directly get your desired screens code right away from the design. DhiWise provides an option to export the screen to get the code for only the selected one.

info

While exporting you can select between code types to get only widgets design code or complete code along with GetX state management, so you can also add code to your existing apps.

Step 1:

After activating the DhiWise Figma plugin, select the screens in Figma design for which you want to export the code.

Example banner

Step 2:

Next, select Flutter for mobile technology, and ensure the Selected Frames option is selected under Export option in the plugin panel.

info

On the right, as you have chosen Selected Frames options, all the selected screen names will be displayed for your ease.

Step 3:

Now, for Code type select Only Design Code, to get only the widgets design code or select Complete Code to the entire widgets code using GetX state management support. Lastly, add your Figma file URL.

Example banner

Step 4:

Click on Generate Code button. This will start building your screen code and once it's built view the entire generated code by clicking on the View Code button. Then you can download the same and add it to your existing app code or start fresh with a new app.

Example banner

Example banner

From App Screenlist

Export screens code from your created app in DhiWise.

Step 1:

Go to the screen list for your created application.

Step 2:

Go to the screen you wish to export and select the checkbox Export screen.

Example banner

Step 3:

Once you select it, two options will appear:

  • Export all screen code: You can export code for all your app screens.
  • Export screen code: You can export code only for the selected screens.

Example banner

Step 4:

Next, you will get two options for code type:

  • Only Stateless Widget: Export only selected screens design code.
  • Widget + GetX State Management: Export only selected design + GetX state management.

Example banner

To start creating a Flutter app from the initial without any state management, choose Only Stateless Widget.

And if you want the code with state management for your selected app screens, choose Widget + GetX State Management.

Step 5:

Once you select your choice, the selected screens code will start to generate;

Example banner

Once the code is generated, it will redirect you to the generated code screen.

Example banner

You can easily download the source code or simply Copy to clipboard from here easily and can add the selected screens code into an existing app or start creating a new one using it.



Got a question? Ask here.