question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

android studio do not highlight the flutter`s classes.

See original GitHub issue

@winner484 commented on Sat Dec 22 2018

![Image] (https://i.stack.imgur.com/Uqz2Q.png)

this is a demo from flutter doc. but my android studio can not highlight the flutter`s class. what i get is down below.

![Image] (https://i.stack.imgur.com/iNRTU.png)

How can i do to highlight the flutter`s classes? thank you!


@zoechi commented on Sat Dec 22 2018

You shouldn’t need to do anything.

Have you tried restarting Android Studio? Have you tried creating a new project using flutter create foo and check if it happens there as well?

Please add the output of flutter doctor -v.


@winner484 commented on Sun Dec 23 2018

You shouldn’t need to do anything.

Have you tried restarting Android Studio? Have you tried creating a new project using flutter create foo and check if it happens there as well?

Please add the output of flutter doctor -v.

yes, tried restarting AS, tried using IJ, tried creating new project. flutter doctor -v looks good.


@zoechi commented on Sun Dec 23 2018

flutter doctor -v looks good.

is the least relevant part of the output

Please add the output of flutter doctor -v.


@AlexeyPoldeo commented on Tue Jan 15 2019

Does not work for me as well

[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-BY)
    • Flutter version 1.0.0 at /Users/a/flutter
    • Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/a/Library/Android/sdk
    • Android NDK at /Users/a/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    ✗ Android license status unknown.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.3
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] IntelliJ IDEA Community Edition (version 2018.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

@zoechi commented on Tue Jan 15 2019

Try deleting ~/.dartServer/.analysis-driver/


@AlexeyPoldeo commented on Tue Jan 15 2019

No effect - still no highlighting

screen shot 2019-01-15 at 09 44 27

@AlexeyPoldeo commented on Tue Jan 15 2019

What does it mean? I’ve just provided more details.


@zoechi commented on Tue Jan 15 2019

@AlexeyPoldeo no worries, just a bit an overzealous bot. The bot only considers responses of the original issue author.

Have you tried restarting the IDE or perhaps even the machine?


@AlexeyPoldeo commented on Tue Jan 15 2019

Just restarted my mac - still does not work.

I’ve installed plugin on Android Studio and IntelliJ IDEA (both are recent version), it does highlight on both places.


@AlexeyPoldeo commented on Tue Jan 15 2019

I can type and autocompletion works fine, including Flutter classes. Outline works.

screen shot 2019-01-15 at 10 06 18

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
no0bicommented, Dec 29, 2019

Power saver mode will also have an impact File>Power Save Mode

3reactions
alexander-doroshkocommented, Jan 15, 2019

According to the screenshots, code highlighting works fine. By default, classes do not have special highlighting. It’s possible to install 3rd party plugins that add color themes to IntelliJ IDEA or to tune standard color scheme in Settings (Preferences) | Editor | Color Scheme | Dart.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter / Dart syntax highlighting is not working - Stack Overflow
I think reinstalling Flutter and Dart plugin to Android Studio can help. Syntax highlighting is plugins' job.
Read more >
Paint | Android Developers
Enabling this flag does not actually scale text, but rather adjusts text draw operations to deal gracefully with smooth adjustment of scale.
Read more >
New Buttons and Button Themes - Flutter documentation
The new button classes do not support a separate highlight color because it's no longer part of the Material Design. Migrating buttons with...
Read more >
VSCode highlight Flutter errors but Android Studio does not ...
Well the answer is simpler than one may have thought. So I started out with a Flutter project in Android Studio. After I...
Read more >
Android Studio 3 not highlighting custom lint. - Google Groups
Yes -- the reason it works in Java is that in Java PSI closely mirrors the Java code, whereas in Kotlin it does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found