Commit 4e9fd2b
committed
refactor(app): drive host config by value, not streams
AppConfigSource now carries plain values (ThemeSettings/ThemeMode/FeatureAccess)
instead of streams. The app renders them directly through the widget tree the
same way it renders everything else - App reads the theme from configSource (or
its AppBloc), and RootApp provides the FeatureAccess value (or the normal
StreamProvider). A host re-supplies a fresh AppConfigSource on each edit, so
reactivity comes from the normal rebuild; no stream subscriptions, no
AppThemeSettingsChanged/AppThemeModeChanged plumbing, no initial-seed field.1 parent ee98d88 commit 4e9fd2b
3 files changed
Lines changed: 31 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
| |||
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 91 | | |
104 | 92 | | |
105 | 93 | | |
| |||
125 | 113 | | |
126 | 114 | | |
127 | 115 | | |
128 | | - | |
129 | | - | |
130 | 116 | | |
131 | 117 | | |
132 | 118 | | |
| |||
137 | 123 | | |
138 | 124 | | |
139 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
140 | 130 | | |
141 | 131 | | |
142 | 132 | | |
143 | 133 | | |
144 | | - | |
| 134 | + | |
145 | 135 | | |
146 | 136 | | |
147 | 137 | | |
| |||
151 | 141 | | |
152 | 142 | | |
153 | 143 | | |
154 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
155 | 147 | | |
156 | 148 | | |
157 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
0 commit comments