Flutter use different browser

Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

I want to use different browser. I'm using a browser, it's opera. How do I do it?

Upvotes: 0

Views: 4245

Answers (2)

Jahidul Islam
Jahidul Islam

Reputation: 12575

  1. Run with this command line and need to configure your web browsers preference from settings>tools.
flutter run -d opera --web-renderer html
  1. Firstly, Use flutter run -d web-server. secondly, open the app with a browser other than Chrome

Otherwise, you can follow this link.

Upvotes: 0

esentis
esentis

Reputation: 4666

You can run your project with the following command flutter run -d web-server, wait for it to run, then you can copy the url in which your lib\main.dart is being served e.g http://localhost:61262 and open it in whichever browser you want.

Upvotes: 4

Related Questions