FlutterTV Plugins
Flutter plugins with Apple TV (tvOS) support, maintained by the
fluttertv.dev organization.
These are companions to flutter-tvos
— the Flutter tvOS custom embedder. Most are federated *_tvos
implementations of popular pub.dev plugins, produced with the
flutter-tvos plugin port tool and finished/verified by hand.
Published on pub.dev under the
fluttertv.dev
verified publisher. Add them like any other plugin (<name>_tvos: ^0.0.1).
List of plugins
Every plugin below has a tvOS implementation; full details (API
coverage, disabled regions, and porting notes) are available in each
package's README.md and PORTING_REPORT.md.
Evaluated but not provided
These were assessed and deliberately not shipped — their core
capability does not exist on tvOS, so a published package would be
misleading:
| Plugin |
Why not on tvOS |
google_sign_in |
No GoogleSignIn tvOS SDK; tvOS uses a different device-pairing flow |
geolocator |
No location services on Apple TV |
permission_handler |
tvOS lacks the permission surfaces (location, camera, photos, …) |
in_app_purchase |
StoreKit2 port has an unresolved protocol-conformance cascade |
network_info_plus |
Wi‑Fi SSID/BSSID APIs do not exist on tvOS |
webview_flutter |
No WebKit on tvOS — there is no web view, in-app browser, or HTML rendering |
Usage
The upstream plugins do not endorse a tvOS implementation, so add
the *_tvos package to your app explicitly, alongside the upstream
plugin:
dependencies:
shared_preferences: ^2.2.0
shared_preferences_tvos:
git:
url: https://github.com/fluttertv/plugins.git
path: packages/shared_preferences_tvos
Then use the upstream plugin's API exactly as on iOS — the tvOS
implementation registers automatically. Once published these become
plain ^version dependencies.
A few packages need a writable directory and therefore also
path_provider_tvos: e.g. video_player_tvos (for
VideoPlayerController.file) and sqflite_tvos (for the database
path). Their READMEs note this.
How this repository was created
These packages were not hand-written from scratch. They were produced
with the flutter-tvos plugin port tool (part of
flutter-tvos) and then
verified — and where needed finished — by hand. This is the exact,
reproducible workflow.
For the full porter reference — every flag, what the transformer
does and doesn't do, and how to read the generated PORTING_REPORT.md
— see Porting an existing plugin
in the flutter-tvos docs. The summary below is the recipe we used to
produce this repo.
0. Prerequisites
# the flutter-tvos CLI (custom embedder + tooling)
git clone https://github.com/fluttertv/flutter-tvos.git
export TVOS=$PWD/flutter-tvos/bin/flutter-tvos
1. Port an upstream plugin
flutter-tvos plugin port takes an existing Apple plugin (the iOS or
macOS implementation package) and emits a federated *_tvos package.
# from a published pub.dev package (what we used):
$TVOS plugin port --from-pub video_player_avfoundation \
--output plugins/packages/video_player_tvos --include-example
# or from git, or from a local path:
$TVOS plugin port --from-git https://github.com/foo/bar.git --ref main --output ...
$TVOS plugin port ../some_plugin_ios --output ...
The exact upstream source for each package is recorded at the top of
its PORTING_REPORT.md (e.g. video_player_tvos ←
video_player_avfoundation, shared_preferences_tvos ←
shared_preferences_foundation, audioplayers_tvos ←
audioplayers_darwin).
What the porter does automatically:
- Copies the upstream Dart
lib/ (rewriting package: self-imports)
and federates through the upstream *_platform_interface.
- Copies the native Swift/Objective-C into
tvos/Classes/ and
generates a tvOS *.podspec (no dependency on the Flutter
CocoaPod — tvOS resolves Flutter.framework via search paths).
- Makes tvOS follow the iOS code paths: widens
#if os(iOS) →
(os(iOS) || os(tvOS)), ObjC #if TARGET_OS_IOS →
(TARGET_OS_IOS || TARGET_OS_TV), and @available / #available
/ API_AVAILABLE iOS <v> → also tvOS <v>.
- Collapses modern multi-target /
include/-modular SwiftPM packages
into one CocoaPods module (drops the macOS-only target).
- Sets
FLTAssetsPath so plugin asset lookup resolves on a real
Apple TV; sanitizes example pub-workspace / dependency_overrides
wiring.
- Graceful partial port: an API that genuinely doesn't exist on
tvOS, used at type/top-level scope, is wrapped in
#if !os(tvOS) /
#if !TARGET_OS_TV so the package still compiles with that feature
disabled, and every such region is listed in PORTING_REPORT.md