youtube_player_plugin 0.0.1 copy "youtube_player_plugin: ^0.0.1" to clipboard
youtube_player_plugin: ^0.0.1 copied to clipboard

Youtube player for plugin

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Youtube Webview'),
        ),
        body: Center(
          child: YoutubeWebView(videoId: 'https://www.youtube.com/watch?v=MITUUR2mikU'),
        ),
      ),
    );
  }
}
1
likes
120
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

Youtube player for plugin

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview, flutter_web_plugins, plugin_platform_interface, web, youtube_player_flutter

More

Packages that depend on youtube_player_plugin