Flutter for Enterprise | A Cleaner Approach [1/2]

The resources needed to develop a feature doesn’t surge significantly with respect to time in long run

Problem 1 : Responsiveness is not enough

Problem 2 : Business logic needs to be composable

Solution : Adopting Domain Driven Design

Overview:

Clean Architecture
Domain Layer

“We want to post user information when user presses a submit button”

Solution to “Responsiveness is not enough”

Three different presentation layer for each separations.
Different presentation layer for all available platforms.

Solution to “Business logic needs to be composable”

“For mobile, breakdown the process into two step on separate screens while on web implement it as a single process on single screen.”

Flow for Mobile Platform
Flow for Non-Mobile Platform
UML class diagram for use-case types as per the requirement specs (1)

“The billing and shipping address information needs to be identical.”

UML class diagram for use-case types as per the requirement specs (2)

--

--

--

Software Engineer from Kathmandu

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Clojure is Simple

Getting Started with Blender

Write a program to find the frequency of the digits of any number

Combine ERP with Ecommerce Effortlessly

30+ Kickass Tools to Develop Android Apps Like a Pro

Joining the Babylon team: Darragh Burke

CS 373 Fall 2020: Sameer Haniyur

Managing a second brain

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Preyea Regmi

Preyea Regmi

Software Engineer from Kathmandu

More from Medium

Flutter Vs Kotlin: Best Framework for Cross-Platform App Development

Upload Image — Flutter — Dio Package

TimeoutException while using Geolocator in Flutter

Difference between hot reload and hot restart in flutter?