Commit 2f3b19b
fix: replace unhandled throw with logger.e in FAQ screen launchUrl
_launchURL() in faq_screen.dart threw a raw string when canLaunchUrl
returned false. This throw was never caught at the call site
(onTap: () => _launchURL(faq.linkUrl!)), so it propagated up and
crashed the app instead of failing gracefully.
Replaced the throw with logger.e(), consistent with how launchUrl
failures are already handled in about_us_screen.dart.
Fixes #33841 parent a31a7e1 commit 2f3b19b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments