Bump dart-lang/setup-dart from 1.0.0 to 1.5.0 (#944)

Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart)
from 1.0.0 to 1.5.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dart-lang/setup-dart/releases">dart-lang/setup-dart's
releases</a>.</em></p>
<blockquote>
<h2>v1.5.0</h2>
<ul>
<li>Re-wrote the implementation of the action into Dart.</li>
<li>Auto-detect the platform architecture (<code>x64</code>,
<code>ia32</code>, <code>arm</code>, <code>arm64</code>).</li>
<li>Improved the caching and download resilience of the sdk.</li>
<li>Added a new action output: <code>dart-version</code> - the installed
version of the sdk.</li>
</ul>
<h2>v1.3</h2>
<ul>
<li>
<p>The install location of the Dart SDK is now available
in an environment variable, <code>DART_HOME</code> (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/43">#43</a>)</p>
</li>
<li>
<p>Fixed a issue where cached downloads could lead to unzip issues
on self hosted runners (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/35">#35</a>)</p>
</li>
</ul>
<h2>v1.2</h2>
<ul>
<li>Fixes an issue with git dependencies on Windows</li>
</ul>
<h2>v1.1 release</h2>
<ul>
<li>Support build flavors (release, raw, main)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md">dart-lang/setup-dart's
changelog</a>.</em></p>
<blockquote>
<h2>v1.5.1-dev</h2>
<ul>
<li>No longer test the <code>setup-dart</code> action on pre-2.12
SDKs.</li>
<li>Upgrade JS interop code to use inline classes.</li>
</ul>
<h2>v1.5.0</h2>
<ul>
<li>Re-wrote the implementation of the action into Dart.</li>
<li>Auto-detect the platform architecture (<code>x64</code>,
<code>ia32</code>, <code>arm</code>, <code>arm64</code>).</li>
<li>Improved the caching and download resilience of the sdk.</li>
<li>Added a new action output: <code>dart-version</code> - the installed
version of the sdk.</li>
</ul>
<h2>v1.4.0</h2>
<ul>
<li>Automatically create OIDC token for pub.dev.</li>
<li>Add a reusable workflow for publishing.</li>
</ul>
<h2>v1.3.0</h2>
<ul>
<li>The install location of the Dart SDK is now available
in an environment variable, <code>DART_HOME</code>
(<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/43">#43</a>).</li>
<li>Fixed an issue where cached downloads could lead to unzip issues
on self-hosted runners
(<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/35">#35</a>).</li>
</ul>
<h2>v1.2.0</h2>
<ul>
<li>Fixed a path issue impacting git dependencies on Windows.</li>
</ul>
<h2>v1.1.0</h2>
<ul>
<li>Added a <code>flavor</code> option setup.sh to allow downloading
unpublished builds.</li>
</ul>
<h2>v1.0.0</h2>
<ul>
<li>Promoted to 1.0 stable.</li>
</ul>
<h2>v0.5</h2>
<ul>
<li>Fixed a Windows <code>pub global activate</code> path issue.</li>
</ul>
<h2>v0.4</h2>
<ul>
<li>Removed previously deprecated input <code>channel</code>. Use the
<code>sdk</code> input instead.</li>
<li>Added support for specifying the CPU architecture.</li>
</ul>
<h2>v0.3</h2>
<ul>
<li>Added support for installing SDKs from the <code>main</code>
channel.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/d6a63dab3335f427404425de0fbfed4686d93c4f"><code>d6a63da</code></a>
rev to stable in prep for publishing (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/83">#83</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/8f7850f0f6056c5b91a1b9c206a53c9b1be28e4e"><code>8f7850f</code></a>
use package:dart_flutter_team_lints; address lints (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/81">#81</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/929ed5f8bae55086c6fac456ba5acb9763c9e3e2"><code>929ed5f</code></a>
Update README.md (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/80">#80</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/699d6853bbf1b96d77f24d46b19c38c66c2e22b1"><code>699d685</code></a>
convert the implementation of the action to Dart (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/77">#77</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/ed899c08a5f73982101e864b0ddb627eac3f03a1"><code>ed899c0</code></a>
refactor the CI + testing setup (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/74">#74</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/594ae135024ec3840d3ec08d11c4bec5ff72a368"><code>594ae13</code></a>
refactor the readme (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/72">#72</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/4cbd7af027251baa1f95a3e0f11bc5671e4efe27"><code>4cbd7af</code></a>
update the readme to reflect the latest version (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/66">#66</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/7361df65b6fa01dd7e277a74736305dcdc6ffe62"><code>7361df6</code></a>
Bump dart-lang/setup-dart (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/65">#65</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/a57a6c04cf7d4840e88432aad6281d1e125f0d46"><code>a57a6c0</code></a>
Reusable workflow for publishing. (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/64">#64</a>)</li>
<li><a
href="https://github.com/dart-lang/setup-dart/commit/7b1734b5b08d53fbf347cf96b664fa1a49cc6497"><code>7b1734b</code></a>
Automatically create OIDC token for pub.dev. (<a
href="https://redirect.github.com/dart-lang/setup-dart/issues/60">#60</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/dart-lang/setup-dart/compare/9a04e6d73cca37bd455e0608d7e5092f881fd603...d6a63dab3335f427404425de0fbfed4686d93c4f">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dart-lang/setup-dart&package-manager=github_actions&previous-version=1.0.0&new-version=1.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pierre-Louis <6655696+guidezpl@users.noreply.github.com>
1 file changed
tree: 8b3f8b8e5aa3b189034beffe7499ce34e59b74c8
  1. .github/
  2. android/
  3. fonts/
  4. ios/
  5. lib/
  6. linux/
  7. logs/
  8. macos/
  9. test/
  10. test_benchmarks/
  11. test_driver/
  12. test_goldens/
  13. tool/
  14. web/
  15. windows/
  16. .firebaserc
  17. .gitignore
  18. .metadata
  19. analysis_options.yaml
  20. CHANGELOG.md
  21. deferred_components_loading_units.yaml
  22. firebase.json
  23. l10n.yaml
  24. LICENSE
  25. pubspec.lock
  26. pubspec.yaml
  27. README.md
  28. screenshots.md
README.md

Flutter Gallery

Flutter Gallery is a resource to help developers evaluate and use Flutter. It is a collection of Material Design & Cupertino widgets, behaviors, and vignettes implemented with Flutter. We often get asked how one can see Flutter in action, and this gallery demonstrates what Flutter provides and how it behaves in the wild.

Flutter Gallery

Features

  • Showcase for material, cupertino, and other widgets
  • Adaptive layout for mobile and desktop
  • State restoration support
  • Settings to text scaling, text direction, locale, theme, and more...
  • Demo for animations
  • Foldable support and demo for dual_screen
  • Deferred loading
  • CI/CD
  • ...and much more!

Supported Platforms

Flutter Gallery has been built to support multiple platforms. These include:

Running

One can run the gallery locally for any of these platforms. For desktop platforms, please see the Flutter docs for the latest requirements.

cd gallery/
flutter pub get
flutter run

Flutter master channel

The Flutter Gallery targets Flutter‘s master channel. As such, it can take advantage of new SDK features that haven’t landed in the stable channel.

If you'd like to run the Flutter Gallery, you may have to switch to the master channel first:

flutter channel master
flutter upgrade

When you're done, use this command to return to the safety of the stable channel:

flutter channel stable
flutter upgrade

Development

If this is the first time building the Flutter Gallery, the localized code will not be present in the project directory. However, after running the application for the first time, a synthetic package will be generated containing the app's localizations through importing package:flutter_gen/gen_l10n/.

flutter pub get
flutter pub run grinder l10n

See separate README for more details.

flutter pub get
flutter pub run grinder update-code-segments

See separate README for more details.

  1. Convert your animation to a .gif file. Ideally, use a background color of 0xFF030303 to ensure the animation blends into the background of the app.

  2. Add your new .gif file to the assets directory under assets/splash_effects. Ensure the name follows the format splash_effect_$num.gif. The number should be the next number after the current largest number in the repository.

  3. Update the map _effectDurations in splash.dart to include the number of the new .gif as well as its estimated duration. The duration is used to determine how long to display the splash animation at launch.

Releasing

The process is largely automated and easy to set in motion.

First things first, bump the pubspec.yaml version number. This can be in a PR making a change or a separate PR. Use semantic versioning to determine which part to increment. The version number after the + should also be incremented. For example 1.2.3+010203 with a patch should become 1.2.4+010204.

Then, use the following workflows. It is strongly recommended to use the staging/beta environments when available, before deploying to production.

  • Deploy to Play Store: Uses Fastlane to create a beta (freely available on the Play Store), promote an existing beta to production, or publish straight to production (Play Store).

    Note Once an .aab is released with a particular version number, it can't be replaced. The version number must be incremented again.

  • Deploy to web: Deploys a web build to the Firebase-hosted staging or production site.
  • Draft GitHub release: Drafts a GitHub release, including automatically generated release notes and packaged builds for Android, macOS, Linux, and Windows.

    Note The release draft is private until published. Upon being published, the specified version tag will be created.

  • Publish on Windows Store: A workflow file for releasing to the Windows Store. This repository is not currently set up to publish new versions of the current Windows Store listing. Requires running msstore init within the repository and setting repository/environment secrets .

    See the instructions in the documentation for more information.

For posterity, information about doing these things locally is available at go/flutter-gallery-manual-deployment.

Tests

The gallery has its own set of unit, golden, and integration tests.

In addition, Flutter itself uses the gallery in tests. To enable breaking changes, the gallery version is pinned in two places: