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

10 Commits

Author SHA1 Message Date
Parker Lougheed
42c081f219 Update compass app client dependencies (#2561)
Mostly updates share_plus from v7 to v10.
2025-01-06 08:59:20 -05:00
Parker Lougheed
e39638ebff Enable some extra lints for compass app client (#2560)
Enable a few more lints that were mostly followed already for
consistency.
2025-01-06 08:58:52 -05:00
Eric Windmill
f25adf4529 Flutter3.27 (#2483)
Updating samples for the next stable release
2024-12-11 14:34:29 -05:00
Miguel Beltran
57ecb5f7ba refactor Result class, remove asOk and asError (#2542)
As discussed in the PR for the Result pattern implementation
(https://github.com/flutter/website/pull/11444) @parlough recommended
that `asError` and `asOk` should be not be used, and instead we should
use proper exhaustiveness checking.

This PR removes the two "convenience" methods and refactors code.

In some cases, it was enough with writing a proper `if` clause, while in
others it was necessary to use a `switch`.

Still, they are present in the `testing` folder, as they can be useful
for testing purposes.

## 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 have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).

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

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md
[CLA]: https://cla.developers.google.com/
[Discord]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
[changelog]: ../CHANGELOG.md
2024-12-05 13:16:04 -05:00
Parker Lougheed
5adcda3640 [compass_app] Don't expose Dimens subclasses (#2541)
Avoid exposing the subclasses as they shouldn't be instantiated again or
overridden.

Also consistently use fields and getters in the declarations.
2024-12-05 08:39:35 -05:00
Parker Lougheed
90cd385ef4 [compass_app] Mark classes used for namespacing as abstract final (#2540)
As they are just used for namespacing static properties, these classes
shouldn't be extended, implemented, or instantiated.
2024-12-05 08:39:19 -05:00
Parker Lougheed
754ddf0375 [compass_app/server] Misc consistency improvements (#2539) 2024-12-05 08:38:44 -05:00
Parker Lougheed
c3c93a82f5 [compass_app] Standardize on Result factories rather than constructors (#2538)
From my review of the recipes PR in
https://github.com/flutter/website/pull/11444#pullrequestreview-2480423811.
2024-12-05 08:38:14 -05:00
Parker Lougheed
90f0584108 Clean up SDK constraints and lints (#2471) 2024-10-11 19:05:16 -05:00
Eric Windmill
46b5a26b26 Compass app (#2446) 2024-09-28 08:49:27 +10:00