flutube 0.1.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new82

FluTube

Embed Youtube videos in your flutter apps just by passing in the video URL!

This plugin uses an in-built API so the official YT API is not used here and therefore you don't need any API keys.

This plugin also uses the great plugin Chewie to provide a nice material or cupertino video player. And please note this plugin is NOT a replacement for Chewie. Chewie is a great plugin and here we are just using it. I have updated Chewie with some of the pull requests it had on the original repo as well.

Huge thank you to @brianegan for developing Chewie.

Demo

Demo

Installation

In your pubspec.yaml file within your Flutter Project:

dependencies:
  flutube: ^0.1.1

Use it

import 'package:flutube/flutube.dart';

final flutubePlayer = Flutube(
  '<Youtube URL>',
  aspectRatio: 16 / 9,
  autoPlay: true,
  looping: true,
);

Example

Please run the app in the example/ folder to start playing!

0.1.2

  • Fixed a bug which made 'autoStart' property not work without setting 'autoInitialize' to true.

0.1.1

  • Updated http dependency to allow installation on all Flutter channels.

0.1.0

  • Added in-plugin API. The plugin does not depend anymore on the YT Link Deconstructor hosted on HerokuApp.

0.0.1

  • Initial release.

example/README.md

flutube_example

Demonstrates how to use the flutube plugin.

Getting Started

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutube: ^0.1.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutube/flutube.dart';
  
Version Uploaded Documentation Archive
0.1.2 Oct 28, 2018 Go to the documentation of flutube 0.1.2 Download flutube 0.1.2 archive
0.1.1 Oct 26, 2018 Go to the documentation of flutube 0.1.1 Download flutube 0.1.1 archive
0.1.0 Oct 25, 2018 Go to the documentation of flutube 0.1.0 Download flutube 0.1.0 archive
0.0.1 Oct 24, 2018 Go to the documentation of flutube 0.0.1 Download flutube 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
64
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
82
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6
  • Flutter: 0.11.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
http >=0.11.3 <0.13.0 0.12.0
open_iconic_flutter >=0.3.0 <0.4.0 0.3.0
video_player >=0.7.0 <0.8.0 0.7.2
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6
path 1.6.2
sky_engine 0.0.99
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
vector_math 2.0.8