Skip to content

New Flutter project templates shouldn't reference dependencies that aren't in the standard Flutter package #6296

@strangedreamsNY

Description

@strangedreamsNY

The latest Flutter Project template in Android Studio contains a dependency reference to flutter_lint which isn't included as a part of the standard Flutter Installation. This can cause issues when attempting to start a new project while not connected to the internet since Android Studio doesn't support pub get in 'offline' mode and running flutter pub get --offline in Chipmunk builds isn't picked up by the IDE. This leaves you unable to use code inspection, build runners, or other dart lang features needed to work on your project. It would be helpful in the future to not include references to libraries or packages that aren't a part of the standard Flutter environment.

Flutter Plugin 70.0.2

Android Studio Chipmunk | 2021.2.1 Patch 2
Build #AI-212.5712.43.2112.8815526, built on July 10, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6.8
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Jetbrains TeamCity Plugin (2021.2.99602), Dart (212.5744), io.flutter (70.0.2)

flutter_doctor.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions