Flutter-intellij: support expression evaluation for Flutter web apps

Created on 28 Apr 2020  路  10Comments  路  Source: flutter/flutter-intellij

This is a tracking issue to support expression evaluation for Flutter web apps.

flutter-web

Most helpful comment

Any reason why this isn't the default. Hands up who debugs their web apps?

All 10 comments

Expression evaluation should work properly in IntelliJ (with ~--enable-web-expression-evaluation~ --web-enable-expression-evaluation flag for flutter) after the following PR merges:

https://github.com/flutter/flutter/pull/56958

@devoncarew the PR above has merged, is this enough to close this issue?

Yup, I think we can consider this complete now.

im not sure if I completely understand how to use the --enable-web-expression-evaluation flag, how do I configure it in Android Studio?

Sure, there are two things you need to do:

  • enable flutter web on the master, dev, and beta channels: https://flutter.dev/docs/get-started/web#set-up
  • when running an app, run with the --web-enable-expression-evaluation flag to flutter run; In IntelliJ, this can be passed in in the run/debug launch configuration dialog

Screen Shot 2020-05-26 at 8 20 47 AM

thats what I tried, but I get

Could not find an option named "enable-web-expression-evaluation".

Run 'flutter -h' (or 'flutter -h') for available flutter commands and options.

this is my config

image

could it be somehow related to the fact that im running flutter on windows?

Ah, it should be --web-enable-expression-evaluation (not --enable-web-expression-evaluation); I'll update the instructions above.

perfect, works now, thanks!

Any reason why this isn't the default. Hands up who debugs their web apps?

We had to work out a few bugs before making it default. It should be default now in flutter master channel. Please report any bugs!

Was this page helpful?
0 / 5 - 0 ratings