Commit 7ffc222
committed
fix: add error handling for launchUrl in About Us feedback link
The feedback/bug-report link in about_us_screen.dart called launchUrl()
directly with no canLaunchUrl check and no try/catch. If the URL fails
to launch for any reason, the app throws an unhandled exception and
crashes.
Added canLaunchUrl check before calling launchUrl, consistent with the
existing pattern used by other links in the same file.
Fixes #33741 parent 7d07ca4 commit 7ffc222
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 | | |
140 | 147 | | |
141 | 148 | | |
| |||
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
165 | | - | |
| 172 | + | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| |||
0 commit comments