Skip to content

Run pub get --offline after flutter create #84150

@filiph

Description

@filiph

With the new skeleton template (#83530), we need to make sure we run flutter pub get --offline just after flutter create. This is because otherwise, flutter run will not work (see my explanation).

We already do run flutter pub get by default after project creation. https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/create_base.dart#L423-L428
Looks like we might need to either wait a bit (some race condition?), or see if there's something else happening after this line that might mean we need to run it again.

I've volunteered to fix this.

Metadata

Metadata

Assignees

Labels

c: contributor-productivityTeam-specific productivity, code health, technical debt.toolAffects the "flutter" command-line tool. See also t: labels.waiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions