Skip to content

lukepighetti/flutter_fb_arch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_fb_arch

I made this tweet and people wanted an article so instead I made a sketch that is about 80% implemented.

A tweet about how much I love Provider and Firebase

QCFlutter Talk

TLDR

Extend firebase services with backend-like methods that don't act on any service but itself.

Extend FirebaseApp with flows that don't require authentication.

Extend User with flows that require authentication.

Find an easy way to access User and all your services. I like Provider<User> and mixin FirebaseServices.

Data goes up, Firebase RTDB acts as a repository, data is dispatched to your streams and to firebase. The architecture is extremely simple and very fast to write and quite powerful.