Code folding on build() methods doesn't show folding sections when using optional new and const
See original GitHub issueSteps to Reproduce
Open that code in Android Studio
Container(
child: Column(
children: [
Row(
children: [Text("")],
),
Row(
children: [Text("")],
),
Row(
children: [Text("")],
),
],
),
);
You can NOT see collapse / expand buttons at the left. Then add “new” words everywhere. You can DO see collapse / expand buttons at the left.
new Container(
child: new Column(
children: [
new Row(
children: [Text("")],
),
new Row(
children: [Text("")],
),
new Row(
children: [Text("")],
),
],
),
);
Expected behavior
See collapse / expand buttons in both the cases (with and without “new” words)
Version info
[✓] Flutter (Channel master, v0.5.5-pre.5, on Mac OS X 10.13.3 17D102, locale ru-RU)
• Flutter version 0.5.5-pre.5 at /Users/pavel/Development/flutter
• Framework revision d1aaa406ac (2 days ago), 2018-06-12 11:04:49 +0200
• Engine revision d33bbff470
• Dart version 2.0.0-dev.60.0.flutter-a5e41681e5
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/pavel/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.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ 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 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] IntelliJ IDEA Community Edition (version 2017.3.4)
• 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
[✓] Connected devices (1 available)
• SM N920C • 83f0464f54334432 • android-arm64 • Android 6.0.1 (API 23)
! Doctor found issues in 2 categories.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Code Folding | IntelliJ IDEA Documentation - JetBrains
Use this page to specify the default code folding settings. For shortcuts on how to expand or collapse code elements, refer to the...
Read more >PHP #region for code folding? - Stack Overflow
So, no, it has nothing to control your editor. Still, all proper programming text editors support folding class definitions, function definitions, and most ......
Read more >Create collapsible React components with react-collapsed
Learn how you can easily create beautiful, collapsible components in React with a new library, react-collapsed, in this tutorial.
Read more >VS Code tips — Show or hide folding controls - YouTube
By default, VS Code automatically hides the folding controls in the gutter until you mouse over them. To make VS Code always show...
Read more >freezed | Dart Package - Pub.dev
Code generation for immutable classes that has a simple syntax/API without ... Run the generator; Creating a Model using Freezed ... then it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@FrenzyNwoba, Android Studio 3.1.4 is extremely outdated. You’ll get this folding feature as well as tons of other features and bugfixes if you update to the most recent Android Studio or IntelliJ IDEA version.
Please fix this ASAP, this code folding feature for DART is a must have for me…