Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Clean_Architecture_Flutter_Apps.pdf

 Clean_Architecture_Flutter_Apps.pdf

Clean architecture flutter apps

Chandrasekar Kuppusamy

October 19, 2019
Tweet

More Decks by Chandrasekar Kuppusamy

Other Decks in Programming

Transcript

  1. We can think of an app as composed of 3

    primary layers a. Presentation layer b. Domain layer c. Data layer Achieving separation of concerns
  2. a. On taking 5 trips on cab service within a

    week, you get Rs. 50 cashback b. List of past food orders is coming in an api, we want to show cancelled and completed orders in separate tabs c. We want to change the api content type of an endpoint from xml to json d. On purchase of above Rs. 2000, you get a Rs. 500 coupon Can you identify a use case belongs to which layer ??
  3. A. UI is designed first but is developed last in

    code B. UI helps in coming up with data models C. Development typically starts with inner layers (domain, data). In today’s case, domain layer. Approach For Application Design
  4. A. Fork Repo B. If you are not OK with

    the pace, let us know Hands On
  5. Some Concepts We Touched 1. Separation of Concerns 2. Dependency

    Inversion 3. Abstracting external dependencies 4. Liskov Substitution Principle
  6. Further Discussions For discussion on today’s topic, code or flutter,

    we have two channels a. Github issues b. Gitter • Links for the same are in at the below link • Repo/Presentation link are available at below link https://sayeedhussain.github.io/flutter.html