Skip to content

Some flutter libraries have unnecessary import directives #74381

@srawlins

Description

@srawlins

Details

  1. Please tell us exactly how to reproduce the problem you are running into, and how you measured the performance.

  2. Build a Dart SDK which can detect unnecessary imports. Use https://dart-review.googlesource.com/c/sdk/+/177221.

  3. Analyze Flutter sources.

  4. Witness many files which contain import directives whose used elements are provided by another import directive.

  5. Please attach a small application (ideally just one main.dart file) that
    reproduces the problem. You could use https://gist.github.com/ for this.

No thank you.

  1. Switch flutter to master channel and run this app on a physical device
    using profile or release mode. Verify that the performance issue can be
    reproduced there.

n/a

Target Platform: any
Target OS version/browser: any
Devices: any

Logs

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions