Commit f00d361
committed
Improve Flutter SDK installation and detection
Refactored Flutter SDK installation logic to prompt users before installing if the SDK is missing or invalid, and added get_flutter_dir utility for consistent SDK path resolution. Enhanced batch file detection to check the expected install directory first, and standardized user prompts for SDK installation.1 parent 0978de0 commit f00d361
File tree
2 files changed
+34
-4
lines changed- sdk/python/packages/flet-cli/src/flet_cli
- commands
- utils
2 files changed
+34
-4
lines changedLines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
121 | 140 | | |
122 | 141 | | |
123 | 142 | | |
| |||
164 | 183 | | |
165 | 184 | | |
166 | 185 | | |
167 | | - | |
168 | 186 | | |
169 | 187 | | |
170 | 188 | | |
| |||
270 | 288 | | |
271 | 289 | | |
272 | 290 | | |
273 | | - | |
| 291 | + | |
274 | 292 | | |
275 | 293 | | |
276 | 294 | | |
| |||
286 | 304 | | |
287 | 305 | | |
288 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
289 | 313 | | |
290 | 314 | | |
291 | 315 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
| 38 | + | |
32 | 39 | | |
33 | | - | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
0 commit comments