Flutter State Management Examples
问题 In a complex app, sometimes a Global Variable 'attached' to a widget, can be changed by some 'EXTERNAL EVENT' such as (1) A timer that run in another thread, or (2) socket.io server emit event (3) Others ...... Let's call this global variable gintCount and the app has 3 pages, namely: Page 1: A 'Dynamic' page that need to display the latest value of gintCount. Page 2: Another 'Dynamic' page that need to display the latest value of gintCount, with a Text Input Field. Page 3: A 'Static' page