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

discontinued
outdated

A new Flutter plugin for playing inline youtube videos. It is available only for Android and uses official android Youtube Player API. This plugin provides a FlutterYoutubePlayer widget which can be e [...]

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:flutter_youtube_player/flutter_youtube_player.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
  }


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: <Widget>[
            Expanded(
              child: FlutterYoutubePlayer(apiKey: "AIzaSyDP12ZW79fd2aWPzfw8ehlMFOHz2NhHJr4", videoId: "video_id"),
            ),
            Expanded(
              child: Center(
                child: Text('Running on: $_platformVersion\n'),
              )
            ) ,
          ],
        ),
      ),
    );
  }
}
0
likes
0
pub points
78%
popularity

Publisher

unverified uploader

A new Flutter plugin for playing inline youtube videos. It is available only for Android and uses official android Youtube Player API. This plugin provides a FlutterYoutubePlayer widget which can be embedded in app like any other widget.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_youtube_player