Skip to content

Completion does not suggest function structure Flutter 3.16 #4845

Closed

Description

@quyenvsp

Describe the bug
Completion does not suggest function structure Flutter 3.16, on Flutter 3.13 working fine.

To Reproduce
Steps to reproduce the behavior:

  1. Write LayoutBuilder(builder: )

Expected behavior
Function structure (context, constraints) => should in first place.

Screenshots
Flutter 3.16 not working
2023-11-20_163626

Flutter 3.13 working
2023-11-20_163554

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: windows 11
  • VS Code version: 1.84.2
  • Dart extension version: v3.76.1
  • Dart/Flutter SDK version: 3.2.0 / 3.16.0

Activity

  1. DanTup commented on Nov 20, 2023

    @DanTup
    Member

    Thanks for the report! This is the same issue as #4837 which has been fixed recently.

  2. quyenvsp commented on Nov 23, 2023

    @quyenvsp
    Author

    I am writing this for future if need or other people who want build dart sdk yourself

    https://github.com/dart-lang/sdk/wiki/Building#dependencies

    Windows

    mkdir dart-sdk
    cd dart-sdk
    # On Windows, this SHOULD NOT to be run in a shell with Administrator rights.
    fetch dart
    
    cd sdk
    git checkout 3.2.0
    git cherry-pick 28d9ac0
    gclient sync
    
    python3 .\tools\build.py --mode release --arch x64 create_sdk
    
    mv .\out\ReleaseX64\dart-sdk\bin\snapshots\analysis_server.dart.snapshot %FLUTTER_HOME%\bin\cache\dart-sdk\bin\snapshots\
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions