跳到主要内容
0

本课内容目前为英文。

State that lives outside widgets

setState and ChangeNotifier get you far. When many screens share data, some of it loaded from the internet, and you want to test it without a phone, Riverpod keeps that state in providers outside your widgets, and widgets simply watch them. It is a package from the author of Provider.