flutter_youtube_video_player 0.1.2 flutter_youtube_video_player: ^0.1.2 copied to clipboard
A versatile Flutter package that allows you to easily integrate a YouTube player into your Flutter applications.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_youtube_video_player
With Flutter:
$ flutter pub add flutter_youtube_video_player
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_youtube_video_player: ^0.1.2
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_youtube_video_player/landscape_controller.dart';
import 'package:flutter_youtube_video_player/landscape_player_screen.dart';
import 'package:flutter_youtube_video_player/landscape_video.dart';
import 'package:flutter_youtube_video_player/popop.dart';
import 'package:flutter_youtube_video_player/potrait_player.dart';
import 'package:flutter_youtube_video_player/video_player_controller.dart';
import 'package:flutter_youtube_video_player/youtube_video_player.dart';