Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import quickfix doesn't work without new/const #2244

Closed
mit-mit opened this issue May 14, 2018 · 2 comments
Closed

Import quickfix doesn't work without new/const #2244

mit-mit opened this issue May 14, 2018 · 2 comments
Assignees

Comments

@mit-mit
Copy link
Member

mit-mit commented May 14, 2018

  1. Create new Flutter project in Android Studio
  2. Add a new dart file, lib/myhomepage.dart
  3. Move the classes MyHomePage and _MyHomePageState to that new file
  4. Back in main.dart, invoke option-enter on new MyHomePage

=> As expected, get the Import library quick-fix

  1. Remove the new keyword before MyHomePage, and invoke option-enter on MyHomePage

=> No import quick-fix

@mit-mit
Copy link
Member Author

mit-mit commented May 14, 2018

cc @scheglov

@scheglov scheglov self-assigned this May 14, 2018
@scheglov
Copy link
Contributor

dart-bot pushed a commit to dart-lang/sdk that referenced this issue May 14, 2018
…onstructor invocations.

R=brianwilkerson@google.com

Bug: flutter/flutter-intellij#2244
Change-Id: I464b3bc872dc6df46197761c8f619cd69f194566
Reviewed-on: https://dart-review.googlesource.com/54962
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants