Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    lib/pages/home_page.dart:2:8: Error: Not found: 'dart:js' import 'dart:js' as js; Commented Nov 8, 2019 at 8:48
  • @AyushGupta what version of flutter are you using to help you out? I tried this it works as of flutter v1.12.1 on channel master. Commented Nov 17, 2019 at 17:41
  • Even i am on master channel. But now i guess url_launcher_web is available, so might not needing this. But i haven't tried Commented Nov 18, 2019 at 3:56
  • 7
    Heres how to open in new tab or same tab js.context.callMethod('open', ['$url', isNewTab ? '_blank' : '_self']); source: w3schools.com/jsref/met_win_open.asp Commented Jun 10, 2021 at 16:38
  • @MaheshJamdade your url should start with https:// Commented May 19, 2022 at 18:55