last_flutter_flex_player 0.0.3 last_flutter_flex_player: ^0.0.3 copied to clipboard
A Flutter package to play video from youtube, and direct video links with custom UI.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add last_flutter_flex_player
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
last_flutter_flex_player: ^0.0.3
Alternatively, 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:last_flutter_flex_player/controllers/NativePlayer/native_player_view.dart';
import 'package:last_flutter_flex_player/controllers/youtube_controller.dart';
import 'package:last_flutter_flex_player/controls/player_controller.dart';
import 'package:last_flutter_flex_player/controls/player_controls.dart';
import 'package:last_flutter_flex_player/flutter_flex_player.dart';
import 'package:last_flutter_flex_player/flutter_flex_player_controller.dart';
import 'package:last_flutter_flex_player/flutter_flex_player_method_channel.dart';
import 'package:last_flutter_flex_player/flutter_flex_player_platform_interface.dart';
import 'package:last_flutter_flex_player/helpers/configuration.dart';
import 'package:last_flutter_flex_player/helpers/enums.dart';
import 'package:last_flutter_flex_player/helpers/exceptions.dart';
import 'package:last_flutter_flex_player/helpers/extensions.dart';
import 'package:last_flutter_flex_player/helpers/flex_player_sources.dart';
import 'package:last_flutter_flex_player/helpers/streams.dart';
import 'package:last_flutter_flex_player/pages/full_screen_page.dart';
import 'package:last_flutter_flex_player/pages/player_builder.dart';
import 'package:last_flutter_flex_player/pages/portrait_page.dart';