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

InMatrix opened this issue Aug 16, 2018 · 2 comments


None yet
3 participants
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
• 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 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
To install:
brew install cocoapods
pod setup

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android
• 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
• Flutter plugin installed
• Dart plugin version 181.4203.498

[!] VS Code (version 1.25.0)
• VS Code at /Applications/Visual Studio
• Flutter extension not installed; install from

[✓] 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)


This comment has been minimized.

Copy link

commented Aug 20, 2018


This comment has been minimized.

Copy link

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.

Bug: flutter/flutter-intellij#2545
Change-Id: I247db781e3b44910c823bb66d5f8773dc0d415cc
Reviewed-by: Brian Wilkerson <>
Commit-Queue: Konstantin Shcheglov <>

@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.