-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix: Update URL launch method to use Uri.parse #12518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix: Update URL launch method to use Uri.parse #12518
Conversation
- fixes flutter#12410 - It wasn't working in iOS. Later I noticed it for macos app too
/gcbrun |
Visit the preview URL for this PR (updated for commit 6fe6236): https://flutter-docs-prod--pr12518-fix-update-url-launcher-exa-qk5wfz9i.web.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for fixing this! The change looks good to me.
There's one minor diagnostic that's triggering after the change though:
@@ -1,3 +1,3 @@ | |||
// #docregion url-launcher | |||
import 'package:flutter/material.dart'; | |||
import 'package:path/path.dart' as p; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the analysis check is failing since this import is no longer necessary.
<?code-excerpt "lib/url_launcher.dart (url-launcher)"?> | ||
```dart | ||
import 'package:flutter/material.dart'; | ||
import 'package:path/path.dart' as p; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed it now. I am sorry for wasting your time in this silly mistake. I got so excited to submit this PR that I forgot to test it before pushing a commit. |
Refer this issue for full description #12410
Before:
After:

Opened the website uccessfully
Presubmit checklist
of 80 characters or fewer.