flutter_tvos 1.0.5 copy "flutter_tvos: ^1.0.5" to clipboard
flutter_tvos: ^1.0.5 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.0.5 #

  • Updated compatibility with Flutter 3.44.0.

1.0.4 #

  • Fixed dart:ffi and dart:io compile errors on Web. flutter_tvos can now be added to a core package shared across tvOS, iOS, Android, and Web targets without stub workarounds. All TvOSInfo properties return safe defaults (false / '' / 0) on Web.

1.0.3 #

  • Example: call WidgetsFlutterBinding.ensureInitialized() before TvRemoteController.instance.init() so the Flutter binding is ready when the platform channel attaches.
  • pubspec: added issue_tracker link so GitHub issues surface on pub.dev.

1.0.2 #

  • Removed the runTvApp helper from the public API; apps should use normal runApp.
  • TvRemoteController.instance.init() now attaches Dart touch handlers explicitly and remains a no-op off tvOS.
  • Updated README setup/tuning guidance to reflect explicit initialization and current usage patterns.

1.0.1 #

  • Changelog corrected and metadata updated for publication on pub.dev (removed incorrect 1.1.0 header and merged entries under 1.0.0).

1.0.0 #

Remote Control (RCU) #

  • 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 aggregated SwipeEvent notifications (direction + magnitude + isFast) without hand-rolling a SwipeDetector from raw touches. Raw and swipe listeners fire in parallel for the same gesture.
  • Lock-screen media commands (MPRemoteCommandCenter) forwarded to flutter/keyevent so widgets reacting to LogicalKeyboardKey.mediaPlay/Pause/Stop/... light up for free.

Round-3 review follow-ups (Flutter Android / flutter-tizen parity) #

  • Select → LogicalKeyboardKey.enter (was select). Flutter's default ActivateIntent binds to enter, so standard buttons and list items now activate on Select press without any app-level shortcut registration.

  • Menu → Navigator.maybePop via flutter/navigation popRoute (was a dead press(key=menu) method call). Mirrors Android's physical back-button behavior.

  • Play/Pause → LogicalKeyboardKey.mediaPlayPause (was a dead press(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 addRawListener is registered — engine installs a no-op drain, transparently replaced by Dart handler on attach.

  • Initial release

  • Platform detection: isTvOS, isSimulator

  • Device info: tvOSVersion, deviceModel, machineId

  • Capability queries: supports4K, supportsHDR, supportsMultiUser

  • Display info: displayResolution

  • Result caching with clearCache() support

3
likes
130
points
11.1k
downloads

Documentation

API reference

Publisher

verified publisherfluttertv.dev

Weekly Downloads

Platform detection and utilities for Flutter apps running on Apple TV (tvOS). Provides runtime checks for tvOS, device info, and capability queries.

License

BSD-3-Clause (license)

Dependencies

ffi, flutter

More

Packages that depend on flutter_tvos

Packages that implement flutter_tvos