Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why does flutter config for web shows like enable-web: true (Unavailable)?

Tags:

flutter-web

I wanted to develop web application in flutter with the beta support. Thus, I enabled web in flutter config through CLI as below.

$ flutter config --enable-web
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Setting "enable-web" value to "true".

You may need to restart any open editors for them to read new settings.

As next step in the process of development, I wanted to check if the browser is connected as device with flutter, but it's not

$ flutter devices
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
No devices detected.

Hence, I cross verified the flutter config, it showed the status of web enabled as

$ flutter config
...
Settings:
  enable-web: true (Unavailable)

Why does enable-web show true, but unavailable? How can I connect web browser as device in flutter?

like image 422
Prakash Ramasamy Avatar asked Nov 01 '25 19:11

Prakash Ramasamy


1 Answers

You're currently on the stable channel of flutter. Flutter is only supported on beta and higher releases at the moment. You can change to beta and enable web support with:

flutter channel beta
flutter upgrade
flutter config --enable-web

Source

like image 142
Christopher Moore Avatar answered Nov 03 '25 10:11

Christopher Moore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!