Skip to content

Error: Not found: 'dart:ui' #2038

Closed
Closed

Description

@david97wong

Please help
Screenshot 2019-10-08 at 10 54 46 PM
Screenshot 2019-10-08 at 10 54 31 PM

Activity

  1. david97wong commented on Oct 8, 2019

    @david97wong
    Author

    I dont know how to change the dart sdk to flutter sdk

  2. DanTup commented on Oct 8, 2019

    @DanTup
    Member

    @david97wong the extension should select the right SDK automatically. What folder do you have open in the Explorer pane, and do you see "Flutter" written in the status bar when you have a Dart file open?

  3. added
    awaiting infoRequires more information from the customer to progress
    on Oct 8, 2019
  4. david97wong commented on Oct 10, 2019

    @david97wong
    Author

    Screenshot 2019-10-10 at 1 19 48 PM
    Hi DanTup, do you mean this one?

  5. DanTup commented on Oct 10, 2019

    @DanTup
    Member

    @david97wong that looks like Android Studio or IntelliJ? This issue tracker is for the VS Code extension - unfortunately I'm not familiar with how that works, though I did find this:

    https://github.com/flutter/flutter-intellij/blob/master/README.md#quick-start

    Which says

    • configure the Flutter SDK setting
      • Preferences on macOS, File>Settings on Linux, select Languages & Frameworks > Flutter, and set the path to the root of your flutter repo

    Please try that, and if you still have issues it may be best to open an issue in https://github.com/flutter/flutter-intellij (which covers both IntelliJ and Android Studio).

  6. JoelOvien commented on Jan 13, 2020

    @JoelOvien

    I'm having the same problem but on VS code...I'm not seeing flutter written on the status bar when I open a dart file...what should I do?

  7. JoelOvien commented on Jan 13, 2020

    @JoelOvien
  8. DanTup commented on Jan 13, 2020

    @DanTup
    Member

    @JoelOvien if Flutter doesn't appear in the status bar, it suggests your project wasn't detected as a Flutter project. Can you confirm your pubspec.yaml contains sdk: flutter and where it is in relation to the root folder opened in VS Code? We'll only walk a few levels down looking for Flutter projects when deciding which mode to use.

    You could also enable to extension log which logs some info as it scans projects when deciding which mode to use which may be useful. Also check there are no notifications in VS Code (bell icon in bottom right) that might be advising the SDK wasn't found, or similar.

  9. DanTup commented on Feb 29, 2020

    @DanTup
    Member

    Are you still having this issue? Are you able to get the log described above?

  10. JoelOvien commented on Feb 29, 2020

    @JoelOvien
  11. DanTup commented on Feb 29, 2020

    @DanTup
    Member

    @JoelOvien there are some instructions at https://dartcode.org/docs/logging/#extension. You need to open your VS Code User Settings and set the mentioned setting to a file path. That will cause the extension to restart and log to that file. Check the file doesn't contain anything sensitive, and attach it here/in a gist or email to [email protected].

    Thanks!

  12. JoelOvien commented on Feb 29, 2020

    @JoelOvien
  13. JoelOvien commented on Feb 29, 2020

    @JoelOvien
  14. removed
    awaiting infoRequires more information from the customer to progress
    on Mar 2, 2020
  15. DanTup commented on Mar 2, 2020

    @DanTup
    Member

    Great, glad to hear!

  16. gaetaneferon commented on Mar 21, 2020

    @gaetaneferon

    Hi, I have the same problem but I didn't undestand what to do exactly. Can you help please.

    many thanks

  17. DanTup commented on Mar 23, 2020

    @DanTup
    Member

    @gaetaneferon could you post a screenshot showing the issue, and including the full VS Code status bar?

  18. david97wong commented on Mar 27, 2020

    @david97wong
    Author
  19. DanTup commented on Feb 17, 2022

    @DanTup
    Member

    @noordawod please don't spam the same comment on multiple issues. If you'r ehaving problems, raising a single new issue is sufficient.

  20. noordawod commented on Feb 17, 2022

    @noordawod

    @noordawod please don't spam the same comment on multiple issues. If you'r ehaving problems, raising a single new issue is sufficient.

    Removed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions