This is a repository to showcase different design patterns that are possible while using Flutter and Dart. Flutter and Dart is very versitile on how we can structure our projects and what type of design patterns we can implement. The examples in this repository is barebone and basic just to be able to quickly showcase how one could implement these different design patterns.
Currently there are four examples in this repository.
Current design patterns:
- Set State
- MVP (Model View Presenter)
- MVVM (Model View Viewmodel) using sinks and streams
- BLoC (Business Logic Component) using functions.
Planned design patterns:
- MVVM with provider
- BLoC with streams
All examples have the same layout as can be seen in the screenshot below. All examples will react on text changed and on button press to display the text value that is in the textfield. This will be handled differently depending on the design pattern of course as is the purpose of this repository.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.