flutter / flutter/flutter-intellij

Switch-cases completion is missing after Dart 3.0

Open
#6,812 16 comments 10 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## Steps to Reproduce
1. Set the `sdk` constraint to `>=3.0.0` in `pubspec.yaml` and run pub get.
2. Try the below code.
```dart
enum MyEnum { foo, bar }

void f(MyEnum e) {
switch (e) {}
}
```

![image](https://github.com/flutter/flutter-intellij/assets/15884415/231eaac0-6200-4b79-8dcb-79f772e8170e)

## Version info

```console
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale en-US)
• Flutter version 3.10.5 on channel stable at X:\SDK\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 796c8ef792 (3 weeks ago), 2023-06-13 15:51:02 -0700
• Engine revision 45f6e00911
• Dart version 3.0.5
• DevTools version 2.23.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.