flutter / flutter/flutter-intellij

Dart Plugin unable to highlight the parameters which are used

Open
#1,880 6 comments 0 reactions 0 assignees View on GitHub
dependency: dart plugin
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

I have just started to code my first sample app in Flutter, while coding I am unable to undestand what are the parameters which are being used in classes.

Eg: Start with MaterialApp, it has number of parameters
```
MaterialApp({ // can't be const because the asserts use methods on Map :-(
Key key,
this.navigatorKey,
this.home,
this.routes: const {},
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.navigatorObservers: const [],
this.builder,
this.title: '',
this.onGenerateTitle,
this.color,
this.theme,
this.locale,
this.localizationsDelegates,
this.localeResolutionCallback,
this.supportedLocales: const [const Locale('en', 'US')],
this.debugShowMaterialGrid: false,
this.showPerformanceOverlay: false,
this.checkerboardRasterCacheImages: false,
this.checkerboardOffscreenLayers: false,
this.showSemanticsDebugger: false,
this.debugShowCheckedModeBanner: true,
})
```

If we add a following sample code
```
return new MaterialApp(
title: "My App",
home: new Scaffold(
appBar: new AppBar(title: new Text("Welcome to Flutter")),
body: new Center(child: new Text("Hello World")),
floatingActionButton: new FloatingActionButton(
onPressed: null, backgroundColor: Colors.teal)));
}
```

If we press `CMD+P` to preview the syntax parameters which we have used, the plugin does not highlight it well in Android Studio, as compare to what it does excellent if we code in Java and Kotlin.

Is there any other way to interpret the parameter which we have passed to a construct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.