Content-Length: 304606 | pFad | http://github.com/flutter/flutter/issues/107726

EA Add current Flutter version as lower bound in application template · Issue #107726 · flutter/flutter · GitHub
Skip to content

Add current Flutter version as lower bound in application template #107726

@aam

Description

@aam

Flutter example generated as part of plugin generated from ffi_plugin template fails to run with older version of flutter.
So it needs to have lower-bound constraint generated in its pubspec.yaml that matches flutter that is used to generate the project.

Otherwise, user could encounter various compile-time errors when running generated example with older version of flutter.

$ flutter create --template plugin_ffi --platforms linux,windows p
...
$ cat p/example/pubspec.yaml
...
 environment:
  sdk: '>=2.18.0-283.0.dev <3.0.0'
...
$

cc @stuartmorgan

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.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: http://github.com/flutter/flutter/issues/107726

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy