Skip to content

geolocator_watchos: upstream's example, the Baseflow demo - #29

Merged
MAUstaoglu merged 2 commits into
mainfrom
examples-geolocator
Oct 24, 2026
Merged

MAUstaoglu merged 2 commits into
mainfrom
examples-geolocator

Conversation

@MAUstaoglu

Copy link
Copy Markdown
Member

Part of #24.

Example. Our example was a hand-written demo, though the README called it the upstream Baseflow demo "ported verbatim". It is now geolocator's own example app, ported with flutter-watchos plugin port --include-example. Its code is unchanged, with two listed watchOS deviations (both in the README's new Example section):

  • example/pubspec.yaml adds url_launcher_watchos, so the template's links open on the watch.
  • The runner's Info.plist sets FlutterWatchOSContentScale to 0.6. The demo is laid out for a phone and overflowed a 46 mm watch screen by 106 pixels; the scale fits it without touching the Dart code. network_info_plus does the same.

The package's LICENSE is Baseflow's MIT licence, which covers the demo. geolocator ships no integration test.

Verified on the watchOS 27.0 Simulator. The build uses --dart-define=flutter.inspector.structuredErrors=false, so framework errors reach the log (spec 0006 criterion 8a). Before the scale, that check reported the overflow.

  • With the scale, the example starts with no exception in its first 15 seconds and no overflow stripe.
  • It reports the location service enabled, through our service-status stream.

Unit tests (26) and flutter analyze lib test are clean. The repo's version, example-constraint, README-snippet, word and format checks pass.

0.2.0 is not published yet (#16), so the change joins its CHANGELOG entry under a new "Example" heading.

The example was a hand-written demo, though the README called it the
upstream Baseflow demo "ported verbatim". AUTHORING.md §3 asks for upstream's
own example, so it is now geolocator's example app, ported with
`flutter-watchos plugin port --include-example` (#24). Its code is
unchanged; two listed watchOS deviations:

- example/pubspec.yaml adds url_launcher_watchos, so the template's links
  open on the watch.
- The runner's Info.plist sets FlutterWatchOSContentScale to 0.6. The demo
  is laid out for a phone and overflowed a 46 mm watch screen by 106
  pixels; the scale fits it without touching the Dart code.

The package's LICENSE is Baseflow's MIT licence, which covers the demo.
geolocator ships no integration test. On the watchOS 27.0 Simulator, built
with flutter.inspector.structuredErrors=false so framework errors reach the
log (spec 0006 criterion 8a), the example starts with no exception in its
first 15 seconds and no overflow, and reports the location service enabled.

0.2.0 is not published yet (#16), so this joins its CHANGELOG entry.
The permission prompt and live updates were verified on a physical Apple Watch with 0.1.x; 0.2.0 has run only on the Simulator so far (#16). The README is published with 0.2.0, so it says so.
@MAUstaoglu
MAUstaoglu merged commit abe74cf into main Oct 24, 2026
2 checks passed
@MAUstaoglu
MAUstaoglu deleted the examples-geolocator branch October 24, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant