1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
dependabot[bot]
f9453c11e5 Bump go_router from 8.2.0 to 9.0.0 in /game_template (#1921) 2023-06-28 06:23:42 +10:00
dependabot[bot]
c42526ffe4 Bump go_router from 7.1.1 to 8.0.0 in /game_template (#1881) 2023-06-08 22:29:07 +10:00
Filip Hracek
dd4fc132a1 Provide LocalKey to every custom transition (#1869)
Fixes #1551.

Also, remove superfluous `debugPrint` calls and other `Logger` setup
since the latest `pkg:logging` does this stuff automatically and so the
setup lead to duplicate messages in console.

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
2023-06-05 07:52:31 +10:00
Filip Hracek
0071c662c3 Fix web navigation bug in game_template (#1868)
Disallow navigating to /win without details.

Fixes #1288.

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.
2023-06-04 16:51:37 +02:00
Filip Hracek
2672e8c2f5 Rebuild iOS and macOS targets for game_template (#1867) 2023-06-04 21:18:21 +10:00
Brett Morgan
a33e0f9720 game_template fix up exhaustive checks (#1853)
## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
2023-05-31 06:56:49 +10:00
Christian Padilla
7100438182 Fix minSdkVersion compile error (#1850)
flutter.minSdkVersion is 16, which is too low for guaranteed use of
google_mobile_ads

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md

---------

Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
2023-05-28 15:31:32 +10:00
Brett Morgan
82e38e5b79 Update samples for Dart 3.0.0 (#1803) 2023-05-11 12:48:09 +10:00
Brett Morgan
36e7a6ab04 Update for Flutter 3.10 beta (#1746)
## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

---------

Co-authored-by: David Iglesias <ditman@gmail.com>
Co-authored-by: Mark Thompson <2554588+MarkTechson@users.noreply.github.com>
Co-authored-by: John Ryan <ryjohn@google.com>
2023-05-11 06:16:31 +10:00
dependabot[bot]
68e669bd64 Bump go_router from 6.5.9 to 7.0.0 in /game_template (#1761)
Bumps
[go_router](https://github.com/flutter/packages/tree/main/packages) from
6.5.9 to 7.0.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b01736711c"><code>b017367</code></a>
[go_router] Cleans up route match API and introduces dart fix (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3819">#3819</a>)</li>
<li><a
href="2f95ecda81"><code>2f95ecd</code></a>
[camerax] Add <code>LifecycleOwner</code> Proxy (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3837">#3837</a>)</li>
<li><a
href="815cfca847"><code>815cfca</code></a>
[file_selector] Add getDirectoryPaths implementation for Windows (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3704">#3704</a>)</li>
<li><a
href="6dc28c9c3f"><code>6dc28c9</code></a>
[various] Update Android example min SDKs (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3847">#3847</a>)</li>
<li><a
href="1a90429ac1"><code>1a90429</code></a>
[camerax] Implement Image Streaming (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3454">#3454</a>)</li>
<li><a
href="124e330a2b"><code>124e330</code></a>
[various] update agp and gradle for all examples in packages (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3822">#3822</a>)</li>
<li><a
href="c71747df2c"><code>c71747d</code></a>
Update xcode to 14c18 (<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3774">#3774</a>)</li>
<li><a
href="3dc59f914d"><code>3dc59f9</code></a>
[camera_android] Add NV21 as an image stream format <a
href="https://github.com/flutter/packages/tree/main/packages/issues/3277">#3277</a>
(<a
href="https://github.com/flutter/packages/tree/main/packages/issues/3639">#3639</a>)</li>
<li>See full diff in <a
href="https://github.com/flutter/packages/commits/go_router-v7.0.0/packages">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=go_router&package-manager=pub&previous-version=6.5.9&new-version=7.0.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: Brett Morgan <brettmorgan@google.com>
2023-05-02 13:16:04 +10:00
dependabot[bot]
465964e401 Bump google_mobile_ads from 2.4.0 to 3.0.0 in /game_template (#1745)
Bumps
[google_mobile_ads](https://github.com/googleads/googleads-mobile-flutter/tree/main/packages)
from 2.4.0 to 3.0.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/googleads/googleads-mobile-flutter/commits/HEAD/packages">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google_mobile_ads&package-manager=pub&previous-version=2.4.0&new-version=3.0.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>
2023-04-26 22:31:22 +10:00
dependabot[bot]
5dc04a16be Bump audioplayers from 3.0.1 to 4.0.0 in /game_template (#1735) 2023-04-12 19:09:33 +10:00
dependabot[bot]
c13694db3f Bump flutter_launcher_icons from 0.12.0 to 0.13.0 in /game_template (#1732) 2023-04-10 18:42:35 +10:00
Brett Morgan
31a3d14618 Rebuild runners (#1725) 2023-04-08 07:44:56 +10:00
Brett Morgan
3bafa557f7 Update sdk constraint range and update runners (#1706) 2023-03-23 18:13:59 +10:00
dependabot[bot]
1a8c9a45b1 Bump flutter_launcher_icons from 0.11.0 to 0.12.0 in /game_template (#1676) 2023-02-27 16:12:08 +11:00
Brett Morgan
3e9bb78aec Create analysis_defaults package (#1654)
* Create `analysis_defaults` package

* Update analysis_defaults/pubspec.yaml

Co-authored-by: Pierre-Louis <6655696+guidezpl@users.noreply.github.com>

---------

Co-authored-by: Pierre-Louis <6655696+guidezpl@users.noreply.github.com>
2023-02-16 23:44:16 +10:00
gaaclarke
787bf09fe3 Add background_isolate_channels to CI (#1448)
* Added sample code for using plugins and channels from background isolates.

* goderbauer feedback 1

* goderbauer feedback2

* goderbauer feedback 3

* Add `background_isolate_channels` to CI

* Comment in `background_isolate_channels`

* Fixup

* Elide `experimental/material_3_demo` from `master`

* Elide `material_3_demo` from `master` CI

* Elide `place_tracker` on `master` CI

---------

Co-authored-by: Brett Morgan <brettmorgan@google.com>
Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
2023-02-06 13:20:05 +10:00
Miguel Beltran
6bea60b091 Migrate game_template to Material 3 (#1613) 2023-02-01 08:14:32 +11:00
Parker Lougheed
294ea4ff8f Update to audioplayers 3.0.0 in game_template (#1591) 2023-01-24 18:39:16 -06:00
Brett Morgan
5401bb88b4 Flutter 3.7.0 (#1556)
* Update `simplistic_editor` for Flutter 3.4 beta

* Re-enable beta and master CI

* Disable on master

* Added sample code for using plugins and channels from background isolates.

* goderbauer feedback 1

* goderbauer feedback2

* goderbauer feedback 3

* Add `background_isolate_channels` to CI

* Enable beta CI

* Enable all `stable` CI projects

* `dart fix --apply`

* `print` -> `denugPrint`

* Make deps min version not pinned

* Drop `_isDebug`

* Remove unused import

* `dart format`

* Fixup `linting_tool`

* Fixup `form_app`

* Enable all `master` CI

* Basic fixes

* Patch `simplistic_editor`

* Fix nl at eol

* Comment out `simplistic_editor`

* Incorporating @bleroux's latest changes

* Clean up CI scripts

* Copy `experimental/material_3_demo` to top level

* Update `game_template`

* Update `animations`

* Update `desktop_photo_search`

* Update `flutter_maps_firestore`

* Update `form_app`

* Update `infinite_list`

* Update `isolate_example`

* Update `jsonexample`

* Update `navigation_and_routing`

* Update `place_tracker`

* Update `platform_channels`

* Update `platform_design`

* Update `provider_shopper`

* Fixup `context_menus`

* `dart format`

* Update the main `material_3_demo`

* Make `tool/flutter_ci_script_stable.sh` executable again

Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Co-authored-by: Aaron Clarke <aaclarke@google.com>
2023-01-25 09:08:51 +10:00
dependabot[bot]
c11802e614 Bump audioplayers from 1.2.0 to 2.0.0 in /game_template (#1567)
Bumps [audioplayers](https://github.com/bluefireteam/audioplayers/tree/master/packages) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/bluefireteam/audioplayers/releases)
- [Changelog](https://github.com/bluefireteam/audioplayers/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bluefireteam/audioplayers/commits/audioplayers_web-v2.0.0/packages)

---
updated-dependencies:
- dependency-name: audioplayers
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 10:53:59 +01:00
dependabot[bot]
6288d52c73 Bump go_router from 5.2.4 to 6.0.1 in /game_template (#1566)
Bumps [go_router](https://github.com/flutter/packages/tree/main/packages) from 5.2.4 to 6.0.1.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/go_router-v6.0.1/packages)

---
updated-dependencies:
- dependency-name: go_router
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 10:53:25 +01:00
dependabot[bot]
cdd3dcf59f Bump flutter_launcher_icons from 0.10.0 to 0.11.0 in /game_template (#1568)
Bumps [flutter_launcher_icons](https://github.com/fluttercommunity/flutter_launcher_icons) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/fluttercommunity/flutter_launcher_icons/releases)
- [Changelog](https://github.com/fluttercommunity/flutter_launcher_icons/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fluttercommunity/flutter_launcher_icons/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: flutter_launcher_icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 09:59:03 +01:00
Filip Hracek
a94e5e88a2 Fix go_router navigation (#1515) 2022-12-04 08:06:49 +10:00
Filip Hracek
886b91b005 Upgrade Firebase plugins to next major version (#1495) 2022-11-04 06:45:05 +04:00
Filip Hracek
bfba783bc7 Upgrade audioplayers to latest (#1462)
* Upgrade audioplayers to latest

There have been some important fixes recently. This fixes #1315.

Also, a fly-by upgrade of two other dependencies.

* Delete .gitignore “heading”
2022-10-07 21:24:17 +10:00
Brett Morgan
7835f719c2 Specify parametric type on buildMyTransition (#1435) 2022-09-19 11:36:49 -05:00
Filip Hracek
0805ba38fb Upgrade game_template's dependencies (#1426) 2022-09-10 10:47:23 +10:00
Filip Hracek
6329e7a148 Upgrade macOS, iOS and Android runners (#1425)
Just removed the old `ios/`, `macos/` and `android/` folders and recreated them using `flutter create .`, then massaged the runners back into working order.
2022-09-09 13:21:58 +02:00
Brett Morgan
9d8aa333ee Update for Material changes & run rebuild scripts (#1412) 2022-09-01 11:01:17 +10:00
Rich Hall
1de97a68d4 New Crashlytics Crash Reporting APIs (#1351)
* Changes to package import statements

Without these changes to the package import statements, if a user uncomments the FirebaseCrashlytics code, they will get a bunch of errors.

* Commented out import statements & added instructions

* Update crashlytics.dart

Upgrade Crashlytics.dart to use recently released fatal crash APIs
https://firebase.blog/posts/2022/07/whats-new-in-crashlytics-for-flutter

* Ran dart format on changed files
2022-07-29 07:24:20 +10:00
Toshik
6e6bce1998 fix: import fixed to make game_template working out of this repository (#1329)
* fix: import fixed to make game_template working out of this repository

* fix: import fixed to make game_template working out of this repository
2022-07-20 05:51:27 +10:00
Rich Hall
e4d4d0f48d Changes to package import statements to prevent errors when using FirebaseCrashlytics code (#1309) 2022-06-18 10:53:07 +10:00
Rich Hall
9f6fae7213 updatedCrashlytics link in main.dart (#1301) 2022-06-07 13:45:21 +10:00
Craig Labenz
04e6972df5 bumped stale crashlytics version (#1289) 2022-05-28 13:36:13 -04:00
Brett Morgan
4af443d33f Drop lock files from repo (#1282) 2022-05-28 07:01:26 +10:00
Brett Morgan
58bc5d7a58 Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key`

* `flutter format`
2022-05-13 12:31:56 -07:00
Filip Hracek
4e19545963 Upgrade to latest (#1262) 2022-05-12 08:24:02 -07:00
Brett Morgan
ccd68f34e2 Beta (#1234) 2022-05-11 12:48:11 -07:00
Filip Hracek
daa024a829 Add game_template (#1180)
Adds a template / sample for games built in Flutter, with all the bells and whistles, like ads, in-app purchases, audio, main menu, settings, and so on.

Co-authored-by: Parker Lougheed
Co-authored-by: Shams Zakhour
2022-05-10 15:08:43 +02:00