Skip to content

nukotsuka/flutter_provider_sample

Repository files navigation

flutter_provider_sample

A sample Flutter project for Provider. Using pokemon.json.

Getting Started

Flutter SDK

Install flutter sdk with asdf.

asdf install
asdf reshim

Gem

Install gems for iOS.

cd ios
cd bundle install
bundle exec pod install

Generate files

Run build_runner and generate files defined with freezed and mockito.

make gen/build

or if you want to watch changes of definition files, then

make gen/watch

Architecture

Provider + StateNotifier + Freezed

  • Provider: Provides services and notifiers.
  • StateNotifier: Controllers for a Page.
  • Freezed: Generates entities and states with freezed.

Repository Pattern

  • Entity
  • Repository
  • Service

Atomic Disign Pattern

  • Atom
  • Molecule
  • Organism
  • Page

About

A sample Flutter project for Provider, using pokemon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published