dpad_tv_webview 0.0.2
dpad_tv_webview: ^0.0.2

Flutter Android iOS

WebView which can be navigated by DPAD only. Useful for Android TV

dpad_tv_webview #

WebView which can be navigated by DPAD only. Useful for Android TV

This is still work in progress.

Usage #

To use this plugin, add dpad_tv_webview as a dependency in your pubspec.yaml file.

Example #

import 'package:dpad_tv_webview/dpad_tv_webview.dart';
import 'package:flutter/material.dart';

void main() => runApp(DpadTvWebView());

class DpadTvWebView extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _DpadTvWebView();
  }
}

class _DpadTvWebView extends State<DpadTvWebView> {
  final String _title = 'dpad_tv_webview example for Android TV';

  @override
  Widget build(BuildContext context) {
    final TextTheme textTheme = Theme.of(context).textTheme;

    WebViewForTV webViewForTV = WebViewForTV(
      initialUrl: "https://www.google.com",
    );

    DefaultTextStyle menu = DefaultTextStyle(
      style: textTheme.headline,
      child: webViewForTV,
    );

    return MaterialApp(
      title: _title,
      home: Scaffold(
        body: menu,
      ),
    );
  }
}


2
likes
90
pub points
40%
popularity

WebView which can be navigated by DPAD only. Useful for Android TV

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

makthatte2010@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, webview_flutter

More

Packages that depend on dpad_tv_webview