Skip to content

Support user-supplied (package) templates #4623

@FMorschel

Description

@FMorschel

From a lot of Flutter issues, and this comment:

flutter/flutter#15279 (comment):

[Support user-supplied project templates for flutter create] is not planned, we'd like to see features like this added to packages on pub instead.

I think we should have a way of telling pub we have templates for our packages and users could then do dart pub create package_name-template_name or something.

And the default could be the example if it is a .dart file.

This would help users to know how we imagined our packages to be consumed, and make basic working examples available for people to mess with is always great for learning the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions