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

45 Commits

Author SHA1 Message Date
Kevin Moore
9fef1332f3 Clean up dependencies across packages (#2585)
Drop dep on pkg:collection, use new bits in Dart 3.0
Fixed very old dep in navigation_and_routing – bug was fixed long ago
2025-02-13 03:14:20 +00:00
Eric Windmill
719fd72c38 Flutter 3.29 beta (#2571) 2025-02-12 18:08:01 -05:00
Brett Morgan
5cd8718e4b Migrate place_tracker away from deprecated BitmapDescriptor method (#2309) 2024-05-29 13:20:02 -05:00
Sasank Tumpati
0e1355841d Fixed ThemeData in the Flutter Samples unnecessarily includes useMaterial3 = true (Issue #2214) (#2217) 2024-03-20 20:16:39 +11:00
Taha Tesser
1a26473a50 Replace ButtonBar with OverflowBar (#2072)
This PR replaces `ButtonBar` with `OverflowBar` in preparation of
`ButtonBar` deprecation

related to https://github.com/flutter/flutter/issues/127955


## 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].
- [ ] 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-10-31 15:05:58 +10:00
Miguel Beltran
bce29a0ff2 Fix master channel build (#1900)
- Fixes #1899 - Don't use BuildContext in async.
- Disabled build script for `next-gen-ui-demo` for master channel
because dependency gap does not compile.
- Improve use BuildContext in `place_tracker`, added checks to verify
that the context is still mounted, and avoid passing BuildContext as
parameter.

## Pre-launch Checklist

- [ ] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [ ] I signed the [CLA].
- [ ] I read the [Contributors Guide].
- [ ] 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-06-20 21:29:56 +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]
7d63caa3ac Bump go_router from 6.5.9 to 7.0.0 in /place_tracker (#1758)
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:51 +10:00
Miguel Beltran
a5cdae3ab0 Enable Material 3 on place_tracker (#1621) 2023-02-02 08:27:41 +10:00
Miguel Beltran
db94e92a26 migrate place_tracker to go_router (#1529) 2022-12-16 11:39:23 +11:00
Brett Morgan
9d8aa333ee Update for Material changes & run rebuild scripts (#1412) 2022-09-01 11:01:17 +10:00
Brett Morgan
83f7059d83 Consolidated Flutter 3.3 update (#1401) 2022-08-31 10:06:34 +10:00
xster
ce35e45702 add thumbnails to the books example to make memory leaks easier to test (#1353)
* add thumbnails to the books example to make memory leaks easier to test

* also add profile build

* migrate material 3 demo code to avoid warning

* Revert "migrate material 3 demo code to avoid warning"

This reverts commit 7df37d9f65.

* fix lints in various packages

* DoNothingAndStopPropagationIntent const conflicts between stable and beta, add lint ignore for now
2022-08-23 23:45:12 -07: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
Brett Morgan
ccd68f34e2 Beta (#1234) 2022-05-11 12:48:11 -07:00
Viren Khatri
a23b33f6c9 migrate from ui.hash* to Object.hash* (#1133) 2022-04-24 17:07:46 +10:00
Andrew Brogdon
664b63c03c Updates for 2.8! (#961) 2021-12-09 13:15:57 +10:00
Ahmed Ashour
29339b8334 Remove unneeded types (#949) 2021-11-03 09:58:12 -07:00
Ahmed Ashour
64805fe5b6 Remove unneeded return (#950) 2021-11-03 21:12:41 +10:00
Brett Morgan
0850579bc8 dart migrate place_tracker (#831) 2021-06-08 09:23:48 +10:00
Brett Morgan
7acef097f0 place_tracker: use_key_in_widget_constructors and Runners rebuild (#829) 2021-06-08 07:46:36 +10:00
Brett Morgan
936d1fdaae Upgrading samples to flutter_lints, part 1 of n (#804) 2021-06-05 12:24:28 +10:00
Andrew Brogdon
8c1cd0b049 Landing beta changes in master for the new stable release (#747) 2021-03-03 11:44:35 -08:00
Brett Morgan
622e8d55d3 Migrate to the New Material Buttons (#668) 2021-01-27 13:20:50 +11:00
Arteev Raina
1f0f430dbd [multiple] Added copyright headers (#664) 2021-01-21 11:16:46 -08:00
John Ryan
2236f122b4 Add web support to place_tracker (#550)
* enable web for place_tracker

* add place_tracker symlink

* add generated_plugin_registrant.dart

* update google_maps_flutter_web to fix pins not showing

* add place_tracker to peanut.yaml

* upgrade place_tracker dep

* use a 32 pixel square

* Apply zoom to selected category when the PlaceMapState updates. This fixes a grey screen issue in web, after saving a place.

* pub upgrade

* run pub upgrade

* use published versions of packages

* remove lib/generated_plugin_registrant.dart

* add newline

* add web API key to README

Co-authored-by: David Iglesias Teixeira <ditman@gmail.com>
2020-09-23 11:06:25 -07:00
John Ryan
437d1f620b Place tracker/maintenance (#519)
* format place_tracker README

* update sentence in README

* sort Dart members, remove unnecessary type declarations

* Run place_tracker on Android and iOS, update project files

* add link to developer preview caveat

* grammar

* update MAINTENANCE
2020-08-13 14:30:28 -07:00
Tushar Ojha
084c532ac0 [place_tracker] ChangeNotifierProvider for state management (#424) 2020-06-12 16:50:46 -07:00
Brett Morgan
baa1f976b2 Samples maintenance (#435) 2020-05-13 09:18:26 +10:00
John Ryan
14b9a8c4c4 Flutter 1.17 updates (#432)
* Material text theme updates & flutter pub upgrade (#411)

* Beta channel updates (#412)

* fix deprecated usages in provider_shopper - beta channel

* fix deprecated usages in animations - beta channel

* fix deprecated usages in provider_counter - beta

* Updates additional samples for beta release (#416)

* use headline6 instead of title

* fix another title -> headline6

Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
Co-authored-by: Andrew Brogdon <RedBrogdon@users.noreply.github.com>
2020-05-06 14:09:15 -07:00
Aadarsh Patel
1c887b6d80 typo fix (#403) 2020-03-30 22:18:53 -07:00
Brett Morgan
73086e20c1 Beta branch fix (#173) 2019-12-11 13:01:45 -05:00
Andrew Brogdon
3d40fa9fb2 Tweaked pubspecs, linted. (#113) 2019-07-08 11:25:46 -07:00
Brett Morgan
01478f5e88 Analysis options, fixes and format (#106) 2019-07-04 15:42:59 +10:00
Filip Hracek
fa356540c6 Ensure flutter format and fix offending files (#80)
The current Travis script will only print offending files, but won’t fail the build. Added `--set-exit-if-changed` to fix that.

Also, simplified the call from using `grep` and `xargs` to simple `flutter format .`, which recurses directories.

Lastly, fixed offending files that needed `dartfmt`. (But not in the directories that aren’t covered by `travis_script.sh`.
2019-05-21 13:30:37 -07:00
Kenzie Schmoll
a2419b3dcf Update Place Tracker to use latest version of plugin (#59) 2019-03-20 09:08:13 -07:00
Abhijeeth Padarthi
8fe2999ee8 Removed redundant "const" and "new" assignments & Formatted code. (#58) 2019-03-19 09:27:32 -07:00
Andrew Brogdon
7ae3780bcb Unbreaking tests borked by SDK update. (#49) 2019-02-27 10:13:08 -08:00
Andrew Brogdon
e67cbb03ea Updates travis config to include place_tracker and platform_view_swift (#42) 2018-12-21 15:06:55 -08:00
Kenzie Schmoll
79d9d143b4 Add a list view to the place tracker app. (#30)
* Add list view to place tracker. Note: map in listTile is not WAI in this commit.

* Remove map from list tiles. Make list tiles tappable (currently editing a place and saving will do nothing if the details screen is pushed from the list view.

* Fix text alignment in list.

* Initial implementation of using an InheritedWidget to maintain data between list and map. Map does not update correctly at this point.

* Use AppModel.update to set the AppState. Add MapConfiguration class to handle map changes based on AppState.

* Don't cache AppState - lookup directly. Extract AppState code into it's own file and add static methods. Address comments from Hans.

* Extract generic AppModel code.
2018-11-13 10:39:06 -08:00
Kenzie Schmoll
e59c865884 Use custom marker icons for Favorite places and Visited places. (#31) 2018-11-09 15:32:10 -08:00
kenzieschmoll
3a6152c972 Add more stub data. Alphabetize entries. 2018-11-01 16:26:03 -07:00
Kenzie Schmoll
3ed537495a Add stub reviews to the place details sheet. (#22)
* Add stub place reviews to the place details sheet. Offers a better demonstration of the map in a list view.
2018-11-01 13:15:12 -07:00
Kenzie Schmoll
bfce2a44e9 Add map type toggle to place_tracker demo. (#23)
Button will toggle between normal, satellite, terrain, hybrid, and none MapTypes.
2018-11-01 12:19:04 -07:00
Kenzie Schmoll
7ab277fad4 Add Google Maps Place Tracker sample app to flutter/samples. (#20)
Sample app that displays places on a map. Add/edit places. Interact with map. Iterations to follow.
2018-10-26 13:11:10 -07:00