Inspect element support on flutter web apps

1,266

Inspect element works with HTML and CSS files. And flutter converts your dart code to JS, that's why we can't do inspect element.

And I don't think it is possible as of version 2.

Share:
1,266
crimson suv
Author by

crimson suv

Updated on December 26, 2022

Comments

  • crimson suv
    crimson suv over 1 year

    I have been trying to integrate a web based product tour/on-boarding plugin which will help a new user to understand the application without any external intervention. I cam across this plugin : https://getuserflow.com/ which works well with html websites, I tried integrating this with flutter web app and it fails to detect any element as flutter doesnt support inspect using chrome for some reason.

    Whenever I try to inspect a flutter web app it shows this: Inspect on flutter web app

    It is almost impossible to inspect individual elements same as we can do on other web apps developed in angular or php.

    Is there a way on flutter web to enable web inspect so that the plugin will be supported?

    • ch271828n
      ch271828n over 3 years
    • crimson suv
      crimson suv over 3 years
      Thanks for reply, Devtools is for internal inspecting, It wont solve the issue unfortunately.
    • Abhilash Chandran
      Abhilash Chandran over 3 years
      No this is not possible in its current form in flutter for web. Because flutter converts your widgets into different forms of canvas and svg tags in them. It is difficult to precisely locate your respective element for a widget say a button, if thats what you are looking for. But I do believe there are such tools specifically designed for flutter. Should google it out a bit.
    • Abhilash Chandran
      Abhilash Chandran over 3 years
      There are some as I found in fluttergems.dev here
    • crimson suv
      crimson suv over 3 years
      Thank you guys for the suggestions and information