Home > Mobile >  can i use chromium for flutter?
can i use chromium for flutter?

Time:09-16

So i installed flutter(i use zorinOS). After following some steps, i run flutter doctor and get:

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

I don't have any chrome in my os.I use brave as my default browser, and i have deleted my firefox(my previous browser). I just wonder, do i need to install Chrome specifically? Can't i just install Chromium or use other browser?

CodePudding user response:

We don't test our development flow with Chromium, so I'm not sure.

This requirement is only necessary for development: debugging, etc. We rely on Chrome features to enable our development experience.

CodePudding user response:

I found this:

All you have to do, based on your Linux operating system (for Windows and macOS the process is similar), is to modify your .bashrc file and insert this line:

#Put your Brave installation location here
export CHROME_EXECUTABLE="/opt/brave.com/brave/brave-browser"

For MacOs,

export CHROME_EXECUTABLE="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
  • Related