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

Automatically rename the State object when its StatefulWidget object is renamed #2545

Closed
InMatrix opened this issue Aug 16, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@InMatrix
Copy link

commented Aug 16, 2018

Steps to Reproduce

  • Create a StatefulWidget using the IntelliJ template.
  • Rename the StatefulWidget using the refactoring feature
  • Its State object is not renamed.

Version info

[✓] Flutter (Channel master, v0.5.9-pre.33, on Mac OS X 10.13.6 17G65, locale en-US)
• Flutter version 0.5.9-pre.33 at /Users/taodong/Code/flutter_repos/flutter
• Framework revision 7762e45115 (2 days ago), 2018-08-14 10:24:17 -0700
• Engine revision e54bc4ea18
• Dart version 2.0.0-dev.69.5.flutter-eab492385c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/taodong/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.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-1024-b01)
• All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 9.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4, Build version 9F1027a
• ios-deploy 1.9.2
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.1.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin installed
• Dart plugin version 181.4203.498

[!] VS Code (version 1.25.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected devices (2 available)
• Nexus 5 • 07e84ccb010aa11a • android-arm • Android 6.0.1 (API 23)
• iPhone 6s • 0A3B39BC-A044-4A35-87C4-07825D48E220 • ios • iOS 11.4 (simulator)

@devoncarew

This comment has been minimized.

Copy link
Member

commented Aug 20, 2018

@scheglov

This comment has been minimized.

Copy link
Contributor

commented Sep 23, 2018

dart-bot pushed a commit to dart-lang/sdk that referenced this issue Sep 24, 2018

Rename State class when StatefulWidget is renamed.
R=brianwilkerson@google.com

Bug: flutter/flutter-intellij#2545
Change-Id: I247db781e3b44910c823bb66d5f8773dc0d415cc
Reviewed-on: https://dart-review.googlesource.com/76080
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>

@scheglov scheglov self-assigned this Sep 24, 2018

@scheglov scheglov closed this Sep 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.