uniquejava / blog

My notes regarding the vibrating frontend :boom and the plain old java :rofl.
Creative Commons Zero v1.0 Universal
11 stars 5 forks source link

flutter provider架构(best practice) #290

Open uniquejava opened 4 years ago

uniquejava commented 4 years ago

Didier 对Provider的点评: Provider - Points of interest - Points to care about

FilledStacks的架构: https://www.filledstacks.com/post/flutter-architecture-my-provider-implementation-guide/

我碰到的问题: Flutter — Provider and didChangeDependencies()

Provider.value(
  value: _counter,
  updateShouldNotify: (oldValue, newValue) => oldValue != newValue,
  child: ChildWidget()
)

最佳实践 A beginner’s guide to architecting a Flutter app