flutter_tvos 1.0.0
flutter_tvos: ^1.0.0 copied to clipboard
Platform detection and utilities for Flutter apps running on Apple TV (tvOS). Provides runtime checks for tvOS, device info, and capability queries.
1.1.0 #
Remote Control (RCU) #
runTvApp/TvRemoteController.init()— Siri Remote wired to Flutter's keyboard/focus pipeline on tvOS; passthrough on iOS/Android.TvRemoteConfig— runtime-tunable thresholds (swipe, D-pad dead zone, auto-repeat delays); shipped to native via method channel.TvRemoteController.addRawListener— raw touchpad events for custom swipe zones (video scrubbers etc.).TvRemoteController.addSwipeListener— receive aggregatedSwipeEventnotifications (direction + magnitude + isFast) without hand-rolling aSwipeDetectorfrom raw touches. Raw and swipe listeners fire in parallel for the same gesture.- Lock-screen media commands (
MPRemoteCommandCenter) forwarded toflutter/keyeventso widgets reacting toLogicalKeyboardKey.mediaPlay/Pause/Stop/...light up for free.
Round-3 review follow-ups (Flutter Android / flutter-tizen parity) #
- Select →
LogicalKeyboardKey.enter(wasselect). Flutter's defaultActivateIntentbinds toenter, so standard buttons and list items now activate on Select press without any app-level shortcut registration. - Menu →
Navigator.maybePopviaflutter/navigation popRoute(was a deadpress(key=menu)method call). Mirrors Android's physical back-button behavior. - Play/Pause →
LogicalKeyboardKey.mediaPlayPause(was a deadpress(key=playPause)method call). Via Android keymap (Flutter's macOS map has no media entries). - Touches channel no longer spams "message discarded" warnings
when no
addRawListeneris registered — engine installs a no-op drain, transparently replaced by Dart handler on attach.
1.0.0 #
- Initial release
- Platform detection:
isTvOS,isSimulator - Device info:
tvOSVersion,deviceModel,machineId - Capability queries:
supports4K,supportsHDR,supportsMultiUser - Display info:
displayResolution - Result caching with
clearCache()support