Content-Length: 292629 | pFad | https://github.com/flutter/flutter/issues/139298

8F `flutter create package` should create example projects for each platform · Issue #139298 · flutter/flutter · GitHub
Skip to content

flutter create package should create example projects for each platform #139298

@mgenware

Description

@mgenware

Is there an existing issue for this?

Use case

After #119844 is resolved. There seems to be no easy way to create a flutter widget package. Now flutter create package creates a dart package with no example folder to run a demo app on each platform, and no widget test files. While the pubspec.yaml in generated project still depends on flutter though. If I'm writing a simple button widget and would like to publish it to pub.dev, where should I get started?

Proposal

Developers should be encouraged to create dart packages via dart create package. flutter create package should create a full widget package with widget test files, and an example project to quickly test the widget on each platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/139298

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy