How to build a Chargebee Flutter application in just 2 hours using DhiWise?

Pankti Shah
DhiWise
Published in
3 min readSep 14, 2022

Introduction

Nowadays, people have a tiny machine called “Mobile” in their hands, and we all know that Mobile applications have a vast market. An average individual has over 40 applications installed on their mobile phone.

90% of people use mobile applications instead of websites. Also, there is a big difference between an application and a website user. Therefore, businesses should cater to clients using mobile applications if they want to capture an extensive customer base. For obvious reasons!

And if you are one of those businesses, today is a good time to read this blog. Today, we pair DhiWise’s visual programming approach with Chargebee’s built-in functionality to build something worth your time.

What is Chargebee?

Chargebee is a subscription management system that can help you handle all the aspects of the subscription life cycle. These include recurring billing, invoicing, and trial management for your customers.

How DhiWise come to the rescue?

(1)Figma to Flutter in DhiWise: Let’s sort the UI first.

“People ignore design that ignores people.”

Because it makes it easier for users to connect with your website or application! A robust user interface is crucial because it can convert potential customers into purchasers. With DhiWise, you can convert your Figma design into Flutter UI. Here is how:

Add your Figma in DhiWise

(2)API Integration: Add responsiveness to the components

Importing Chargebee API postman collection into DhiWise.

For that, Go to API Integration→Add New API→Upload Postman collection

→Then for the display subscriptions list, we can API bind on the onReady() method.

onReady() method

Now we select API from the suggestion. This is in response to ‘select view’ as we want to show that response on the screen and after clicking bind with the view.

Response bind

What if there is an error while getting a response from the server? To cross-check, you can set on success and error action handler.

Action handler of API

(3) Navigations: Give Directions

Move from the Subscription Listing screen to the Subscription Add screen with Navigations. After selecting the type of navigation and screen to which you want to redirect, select API & response.

Code Quality

DhiWise generated code is clean code, which means business logic is encapsulated from UI. When there is a change in UI, the change does not affect business logic. Also, the file naming to variable naming conventions is maintained in the entire code generation from DhiWise.

Here is the GitHub link for this application: https://github.com/DhiWise/chargebee

Conclusion

When you want to make your web application into a mobile application, you can do it easily with a few developers as DhiWise helps develop mundane tasks.

About me:

I am a Programmer Analyst at DhiWise.
DhiWise is a pro code platform that helps programmers generate code for mundane tasks and help to focus on the business logic in Flutter and React.

You can find me on LinkedIn and Twitter. We can talk about dev tools and technologies.

--

--

DhiWise
DhiWise

Published in DhiWise

DhiWise enables developers to build web and mobile apps rapidly, with an intelligent platform. It combines people, technology and data in a single workflow. It helps companies solve the problem of resource scarcity by optimizing business resources with limited teams.