Is there way to see a list of possible arguments through IDE for Flutter?

1,307

Solution 1

There are a few ways to do this depending on what IDE you are using.

VSCODE

You can hover your mouse over the widget to see what items can go inside.

enter image description here

Or you can right click on Scaffold for example and click Go to definition.

enter image description here

This will give you a full list of inserts.

enter image description here

Android Studio

I don't know of being able to hover over Widgets in Android Studio as I don't use it but you can right click on the Widget and can select Go To > Declaration

enter image description here

Solution 2

Use control ^ + Space keys to show the list of possible arguments

Keymap settings on Android Studio

This is how it looks

List of arguments

Share:
1,307
R S
Author by

R S

Updated on December 14, 2022

Comments

  • R S
    R S over 1 year

    When I code Flutter application in Android Studio I don't know what arguments certain object can take.Like in the code below: I would like to know what could I put in Scaffold after appBar as a second argument?

    I tried to use Ctrl+P command - does nothing.

    class MyApp extends StatelessWidget {
      Widget build(BuildContext context) {
        return MaterialApp(
          title: 'Welcome to Flutter',
          home: Scaffold(
            appBar: AppBar(
              title: Text("appbar text")
            )
    
        //******WHAT COULD I PUT IN HERE ?******
    
        )
        );
      }
    

    I expect there to be a list of objects I could pass as a parameters instead of constantly peeping into documentation/tutorials. Is there way to do this?