Skip to content

android studio do not highlight the flutter`s classes. #3083

Open

Description

@zoechi

@winner484 commented on Sat Dec 22 2018

Image

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

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

Activity

  1. AlexeyPoldeo commented on Jan 15, 2019

    @AlexeyPoldeo

    Thanks, this is definitely more correct place to resolve.

  2. pq commented on Jan 15, 2019

    @pq
    Collaborator

    Thanks for the report @AlexeyPoldeo!

    /cc @alexander-doroshko

  3. added this to the On Deck milestone on Jan 15, 2019
  4. alexander-doroshko commented on Jan 15, 2019

    @alexander-doroshko
    Contributor

    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.

  5. pq commented on Jan 15, 2019

    @pq
    Collaborator

    Thanks @alexander-doroshko! Any thoughts on the emphasis on Scaffold here?:

    image

  6. alexander-doroshko commented on Jan 15, 2019

    @alexander-doroshko
    Contributor

    @pq, see Settings (Preferences) | Editor | Color Scheme | Dart. By default, constructors have special highlighting in Darcula theme, but no special highlighting in Default (light) theme.

  7. AlexeyPoldeo commented on Jan 15, 2019

    @AlexeyPoldeo

    It will be great if you will add colorful syntax theme shown on Flutter Live '18 demos.
    Newcomers expecting that.

  8. no0bi commented on Dec 29, 2019

    @no0bi

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions