Skip to content

Conversation

dixita0607
Copy link
Contributor

Refer this issue for full description #12410

Before:

  • Wasn't opening the website by clicking on the launch button. I don't have a screenshot of that as the app was not breaking but was just not opening the webpage. I could not find any error logs in the emulator logs (may be because I am new to this). Only thing I can verify is that this issue persist in macos and iPhone 14 emulator.

After:
Opened the website uccessfully
image

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

 - fixes flutter#12410
 - It wasn't working in iOS. Later I noticed it for macos app too
@dixita0607 dixita0607 requested review from sfshaza2 and a team as code owners October 6, 2025 12:37
@parlough
Copy link
Member

parlough commented Oct 6, 2025

/gcbrun

@flutter-website-bot
Copy link
Collaborator

Visit the preview URL for this PR (updated for commit 6fe6236):

https://flutter-docs-prod--pr12518-fix-update-url-launcher-exa-qk5wfz9i.web.app

Copy link
Member

@parlough parlough left a 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;
Copy link
Member

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.

Suggested change

<?code-excerpt "lib/url_launcher.dart (url-launcher)"?>
```dart
import 'package:flutter/material.dart';
import 'package:path/path.dart' as p;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@dixita0607
Copy link
Contributor Author

dixita0607 commented Oct 6, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants