Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Flutter DevTools default browser?

Can I change the default browser that is used for Flutter DevTools? Is it compatible with Firefox or other browser? In my case, I don't like Chrome very much, i's a little slow and heavy compared to firefox and others. I haven't found any solution so far, even changing the settings through VS Code. Thanks!

like image 998
Gabriel Francisco Avatar asked May 15 '20 19:05

Gabriel Francisco


People also ask

How do I change my default browser on Flutter?

In Android Studio open up your Preferences and in the top left there is a search bar. Type in "Web Browsers". You will see a list of web browsers and you can click and drag. Place the one you want to use by default on top.

How do I open developer tools in Chrome in Flutter?

Now run your Project and then click [ctrl] + [alt] + [d] for running dart devtools. VSCode is asking you where you wish to open DevTools.

How do you update DevTools in Flutter?

To upgrade DevTools, upgrade your Dart SDK. If a newer Dart SDK includes a newer version of DevTools, dart devtools will automatically launch this version. If which dart points to the Dart SDK included in your Flutter SDK, then DevTools will be upgraded when you upgrade your Flutter SDK to a newer version.


2 Answers

I don't think that anyone has properly answers this question yet so I'll give it a go.

In my case, my computers default browser is set to Safari but Safari doesn't work well with Flutters Dev Tools at the moment. So.. how can you keep your computers default browser and specify a browser you want to use when starting dev tools?

In Android Studio open up your Preferences and in the top left there is a search bar.

Type in "Web Browsers".

You will see a list of web browsers and you can click and drag. Place the one you want to use by default on top. For example I have chrome on the top of my list. Browser List

Now just set this from "System default" to "First listed" and apply your changes

enter image description here

When you press this button to open dev tools it will now, in my case, open chrome instead of safari even though Safari is my computers default browser. enter image description here

like image 136
Harrison Steward Avatar answered Oct 24 '22 00:10

Harrison Steward


  1. Use flutter run -d web-server
  2. open app with browser other than Chrome
like image 23
Py Qana Avatar answered Oct 24 '22 00:10

Py Qana