Add firefox as device when running flutter web
Asked Answered
I

1

24

I want to add Firefox as my default browser when running flutter for web (chrome has errors with some packages). I've done this before on Ubuntu 20.4 but I've switched to arch and I can't remember how I've done it.

Isatin answered 17/3, 2022 at 19:17 Comment(0)
C
40

You can run the project with web-server as the device :

flutter run -d web-server

Then you can open the url where lib/main.dart is served (it is shown on console), from the browser of your choice (e.g Firefox).

Carabineer answered 17/3, 2022 at 20:15 Comment(1)
Thanks. Before on Ubuntu I could run directly on firefox (only pressing F5 ) but this is also a pretty good alternative!Isatin

© 2022 - 2024 — McMap. All rights reserved.