Is there a quick solution to Navigate through all the Stateful/Stateless widgets in your Flutter project through some sort of menu listing all of them?
It can get quite tedious to make or find a button in your code and write/remove/comment navigation code to quickly debug scenarios.
Is there such a quick navigation feature? I'm using VS Code.
Yes, you should be using Flutter Outline for this kind of stuff it is already available for projects in Android Studio. For VS Code there's a similar plugin which I am linking here. It is called Outline Map.
You can basically see all your widgets in a heirarchial tree formation and even navigate and extract by clicking on them.
Related
I was watching a video about a flutter project in vs code, and I saw that the developer used an extension to group sections of widgets and its childs with a dashed-vertical-line on the left side. Does anyone know what extension is used here?
That is not an extension. This is from VS code settings. Go to settings and search for FLUTTER UI you will get two options as shown in image. Select both option and restart your vs code. You will get broken line tree as you want.
I'm using the most current version of Android Studio to develop Flutter Apps/Flutter 2.5.3.
In some projects, I can see the widget tree graphic lines in the editor, but sometimes when creating a new Flutter project it does not appear. And I'm unable to find the option to turn it on. Does anybody know the secret switch?
Thanks
Good editor settings: (see the yellow marked widget tree lines)
Bad editor settings: (no tree view... :-( )
Go to "File/Settings," then search for "Flutter" and enable "Show UI Guides for build methods":
I would like to build a plugin where I put a Chart or a Tree component for people to drag and drop and use/build their own flows. Is this possible to build in VS Code? Are there any examples or documents on how to do that?
Yes, that's possible. You can use a WebView instance to show graphical output (written in HTML). In my vscode extension (https://github.com/mike-lischke/vscode-antlr4) I display a visual parse tree using D3.js:
In the graphic you can collapse nodes, zoom in/out, move the viewport with the mouse and more.
Is there a way in Eclipse to show the methods in a drop down on top of your screen? Like they do in visual studio.
I know I can press Ctrl-O
I just find the visual studio way handy.
Alt-Shift-B will bring up the Breadcrumb, which might be close to what you're looking for. If you click the arrow icons you'll get dropdowns for the packages, classes or methods.
Even if there is no exact same way in eclipse you might find the feature to expand classes in the Package Explorer useful:
I want a write a desktop application using GTKMM. I want the interface to be made of different panels like in Eclipse you have the Project Explorer, Console, Properties, etc. You should be able to drag the panels to change their position, close them and popout them (not sure if you can popout the panels in Eclipse but you can do it in Visual Studio).
I am using the word panels here as I am not sure what the right term is. I guess some call it dockable windows.
Any pointers on how this can be achieved in GTKMM?
The term is "docking" widgets and the GDL Library is the easiest way to get started with that. You may have seen GDL in action in applications like Anjuta and Inkscape. The documentation isn't that great, but, the source code includes a sample app and once you get going with it it's not that hard.
Basically, you add your widgets to a DockItem and those to a Dock. You put a DockBar somewhere in your application to which the docked items can be minimized. You can save and load the dock "layout" to XML files so that the user doesn't have to re-arrange the dock items every time they start the application.