Today for every organization building an exclusive app has become indispensable. To reach out to potential customers, businesses are making huge investments in mobile app development as the number of mobile app users is consistently growing worldwide.
However, building a successful mobile application isn’t a cakewalk; there are multiple things you need to consider during app development, such as planning, designing, coding, testing, and maintenance.
Among them, converting your design to code is the most frustrating and time-consuming task for developers unfamiliar with the design world.
Figma is a popular web-based vector graphics editor and prototyping tool. It comes with additional functionalities supported by desktop applications for macOS and Windows.
It allows mobile users to view Figma prototypes in real-time using Figma mirror companion apps for Android and iOS. It enables designers and developers to create UI and wireframing for web and mobile apps.
Flutter is an open-source Google UI toolkit to develop beautiful, natively compiled apps for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase.
Flutter is among the top software repositories. Based on the Github stars. There are over 100,000 apps scripted using Flutter since its first launch. One of the most notable apps is “Xianyu,” created by the Alibaba team, which 50 million people use.
Though translating UI/UX design to Flutter code is one of the frustrating and time-consuming parts of app development, DhiWise helps you to bridge the gap between designing and development with its Flutter app builder.
It enables developers to convert their design in Figma to Flutter code in a few steps.
Let’s learn how to translate the beautiful Figma design into an excellent Flutter app code with DhiWise Flutter Builder.
Here is the step-by-step guide to converting Figma to Flutter code.
To convert your Figma design to Flutter code, first, you need to sign up on DhiWise. You can directly sign up with a Google, GitHub, or Discord account.
Once sign-up is done, you will be directed to the Dashboard where you can search and view the created applications.
To start creating a new application, click "New application", and select "Create a new app" from the drop-down.
Then it will open a Create a new app pop up window. Here you need to enter the Application name, Technology, Design platform, Figma account and the Figma URL.
In the snap below we have selected Technology as a Flutter and design platform as Figma.
Note: For now, DhiWise only supports Figma designs. For the designs in Adobe and XD, you need to put a request to migrate them, and DhiWise shall be handling the same within 24 to 48 hours.
Once you have filled desired credentials and added a Figma account with the URL click “Create a new app”. Then the new pop-up window will appear where you can select the app screens/pages from the Figma design you have selected.
Here, select the screens you want to import and click “Submit”.
The platform will start fetching design data from Figma as shown below. And from here you can move to the next step.
The platform allows developers to wait and set up configuration or directly move to the screen list. However, the configuration setup can also be done from the Setting screen.
Wait and set up config will take you back to the Fech design data screen, here click Next to set configuration.
As the configuration is completed you can move to the next step.
If you are looking for state management support, DhiWise Flutter Builder provides inbuilt support for the most popular GetX, Provider, Riverpod, and BLoC libraries or you can just get the UI code with stateless widgets.
Moreover, the platform comes with GitHub and GitLab integration as well as extensions for your favorite IDEs i.e. VS Code, Android Studio, and IntelliJ simplifying code sharing, collaboration, and management all from one place.
Now let's move to the screen list from here.
DhiWise Flutter Builder auto-identifies widgets, custom components, and auto-setup actions and validations.
This allows you to set the splash screen- the initial screen of the application and the screen next to the splash screen.
a. Set up splash screen
b. Set up the screen next to the splash screen
Moreover, if there are any missing style assets the platform will ask you to upload the same to the platform. This will help you to keep the app UI more accurate and will eliminate the chances of UI overflow encounters in the feature.
Here you can see all the selected screens. To customize them just select the screen and click “Configure”.
The Configure option platform allows you to customize the UI code, components, and styling.
a. Cutomize Screen UI
In the snap below you can see the UI design hierarchy. And DhiWise Flutter Builder provides a Smart Code Editor that allows you to edit UI just like an IDE. You can view the auto-identified actions, add new actions, and setup the onReady Lifecycle method from here.
Here is how you can setup onReady lifecycle method.
b. Cutom Components
Here, you will find all the auto-identified custom components of the app. You can view all of them here along with their properties and variants.
The Styling option lets you update and create new color styles, update and upload new fonts, and add Assets and Strings.
In case, you encounter any Figma design changes in the middle of UI customization, and want to bring those changes in DhiWise, they can easily be synchronized without affecting the UI changes using "Sync design changes" option.
Next, you can integrate APIs to set up connections with the server. The platform lets you add, view, edit and delete the APIs.
To add a new API you can either upload a Postman file from the existing Postman collection or create and add API manually with DhiWise API runner.
The one more thing DhiWise simplifies is adding constants to your code. It allows you to create and manage multiple constant files in the app.
Step 8: Preview design changes and share the preview with the team
Once you have done with the UI customization and styling, the changes can be previewed before generating the final code, also there is a facility to share the preview link with the others in your team.
Once your UI customization is done such as adding actions, setting up APIs, and more, you are ready to generate your app code.
With the platform, you can either generate code for single or multiple screens or build the entire app with the Build app option.
Additionally, the Build app option allows you to generate the code with the desired state management library or with state management.
Now let's build the app with the GetX state management library.
You shall get the structured Flutter Application code, with the following SDK version and the Libraries.
The platform generates clean code with reusable code components. As your code is generated you can download the entire source code from the platform or sync it with your GitHub or GitLab Repository.
Refer to our user help document to know more about code download and synchronization.
Besides code generation, the platform supports project synchronization with VScode, Android Studio, and IntelliJ IDE. To sync your built project in IDE install the plugin in your IDE and then copy-paste the application token into the plugin.
DhiWise is providing two more awesome features for its developers, to make their development life exciting while using DhiWise.
One is ready-to-use Flutter templates and the other is the Figma to Code plugin that lets you get the code from your Figma platform in minutes.
Looks amazing right?
So, this is all about converting your design in Figma to Flutter code using DhiWise Flutter app builder. It will only take a few steps to transform the Figma design to Flutter code.
There are more features such as Authentication, Firestore, Supabase integration, and more. Well, we shall talk about them in the upcoming blogs.
Watch this demo video “Introduction to DhiWise Flutter Builder” or visit our official website for more information about the Flutter app Builder.