A Flutter based Cwtch UI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

455 B

State Management

We use a MultiProvider to distribute state to the underlying widgets. Right now there are 2 top level Providers: FlwtchState (the app) and OpaqueTheme.

Theme

OpaqueTheme extends ChangeProvider. SetLight and SetDark are functions that call notifyListeners()

ChangeNotiferProvider is used to package OpaqueTheme into a provider which is a top level provider (as every widget in the app needs to be re-rendered on a theme switch).