flutter_watchos 0.1.0-beta.2
flutter_watchos: ^0.1.0-beta.2 copied to clipboard
Platform detection and utilities for Flutter apps running on Apple Watch (watchOS). Provides runtime checks for watchOS, device info, capability queries, and Taptic Engine haptics.
0.1.0-beta.2 #
- Fix: the package now no-ops correctly on iPhone/iPad. The native-symbol
gate used
Platform.isIOS, which is alsotrueon real iOS, so cross-platform apps crashed with "symbol not found" when callingWatchCrown,WatchHaptics,WatchStatusBar,WatchCrownScrolling, orWatchOSInfooff-watch. The gate now checks for an actual watchOS process (Platform.operatingSystem == 'watchos'), so the documented "safe no-op on non-watchOS platforms" behavior holds everywhere: haptics and status-bar calls do nothing, the crown stream never emits,drain()returns 0, andWatchOSInfo.isWatchOSreportsfalse.
0.1.0-beta.1 #
- Initial beta release.
WatchStatusBar— show/hide the system status bar (the clock watchOS draws over every app). Visible by default, per the watchOS HIG; setWatchStatusBar.hidden = truefor immersive UIs.WatchOSInfo— synchronous FFI device info (version, model, machine id, simulator, screen size/scale).FlutterWatchosPlatform— cheapisWatch/isIosplatform detection that disambiguates Apple Watch from iPhone/iPad (both reportPlatform.isIOS).WatchHaptics— Taptic Engine feedback viaWKInterfaceDevice.playHaptic.WatchCrownScroll— the native scroll feel for a subtree: installsWatchScrollPhysics(firm, live, shallow watch-style edge bounce instead of the iPhone deep stretch; no haptic at the list edges, matching native watchOS 26).WatchScrollPhysics/WatchScrollBehavior— the watch-tuned physics on their own, per scrollable or app-wide.WatchCrownScrolling— the native-parity crown scroll options:sensitivity(low/medium/high) anddetentHapticson/off, applied by the engine per crown sample.WatchCrown— raw Digital Crown input (rotation stream or per-framedrain()) for games and custom controls, switching the crown out of scroll mode while active.