An open API service indexing awesome lists of open source software.

https://github.com/apgapg/flutter_mvp_app


https://github.com/apgapg/flutter_mvp_app

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# flutter_mvp_app

A sample Flutter application using MVP architecture.

Original blog: https://medium.com/@ayushpguptaapg/implementing-mvp-arch-in-flutter-app-1d67f695eab1

This app fetches a text from network and displays it in a text widget.
The code is three layered:
1. View (widgets,setState(), etc...).
2. Presenter (logic...).
3. Model (data repository like api calls, database etc).

The whole workflow in the app can be understood with this figure:

![](https://github.com/apgapg/flutter_mvp_app/blob/master/screenshots/mvp_flow.png)

Finally if everything goes well you will see this result:

![](https://github.com/apgapg/flutter_mvp_app/blob/master/screenshots/mvp_result.png)

## Contribution

Pull requests, suggestions, improvements etc are all welcome.

Read my blogs: https://medium.com/@ayushpguptaapg