is_tv_ffi 0.7.1
is_tv_ffi: ^0.7.1 copied to clipboard
Detects whether a Flutter app is running on a TV: Android TV, tvOS, webOS, Tizen and TV-mode Linux and Windows, using FFI and JNI rather than platform channels.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add is_tv_ffiThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
is_tv_ffi: ^0.7.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:is_tv_ffi/is_tv_ffi.dart';