First demo of Pragmatic State Management in Flutter (Google I/O'19)
-
v1: faild to rebuild chart ,In this demo, slider cannot control piechart, figure out how to complete the control function base on it.
-
v2: rebuild chart using global variable, The way of rebuilding piechart in this demo is what Matt Sullivan used in the video. Attention: This demo is just to provide a bad solution that using global varibale rebuild piechart widget, not recommended in real project.
-
v3: rebuild chart using provider , using provider to rebuild piechart .