Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
/ flutter_samples Public archive

Contains several useful examples for Flutter built with a MVVM structure

Notifications You must be signed in to change notification settings

Suneco/flutter_samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Samples

This repository contains several useful elements for building a new Flutter application. Currently the following examples are included:

  • GPS distance tracker
  • Animations
  • API calls
  • Camera/Gallery interaction
  • iOS and Material design elements

Architecture

This application contains a MVVM structure. Every View is responsible for showing the UI, while a ViewModel delivers data to the View and handles all business logic.

In this repo you will find all the views in the /view folder and all view models inside the /view_models folder.

The most important element being used to render the UI on changes is the Stream class. In a ViewModel you should define a StreamController for every property that could be changed in the business logic. When you want to change a property in the ViewModel, you need to call add() on that property. The UI will then automatically update that part of the view structure.

About

Contains several useful examples for Flutter built with a MVVM structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages