youtube_show 0.0.3 copy "youtube_show: ^0.0.3" to clipboard
youtube_show: ^0.0.3 copied to clipboard

Youtube Show is a Flutter package that embeds a YouTube player using WebView. It supports autoplay, mute, looping, fullscreen, and video controls. Easily integrate and control YouTube videos in your F [...]

Youtube Show #

A powerful and fully customizable YouTube Show package for Flutter, allowing seamless integration of YouTube videos with full control over playback options.

🚀 Features #

  • 📺 Embed YouTube videos easily with customizable options.
  • 🔄 Supports fullscreen mode.
  • 🎨 Control visibility of UI controls.
  • 🔊 Auto-play, mute, looping support.
  • 🛠️ Pause video when navigating away.
  • 📱 Works on Android, iOS, and Web.

📦 Installation #

Add this package to your pubspec.yaml:

dependencies:
  youtube_show: latest_version

Then run:

flutter pub get

🎯 Usage #

Import the package:

import 'package:youtube_show/youtube_show.dart';

Basic Example #

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: YoutubeShowpage(),
    );
  }
}

class YoutubeShowpage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("YouTube Player KRD")),
      body: Center(
        child: YoutubeShow(
          url: "https://youtu.be/rC4n6H7AkpY?si=PG10oqcFnVbslvrM", // Replace with your YouTube video URL
          width: 300,
          height: 200,
          autoPlay: true,
          mute: false,
          looping: false,
          showControls: true,
          showFullScreen: true,
          pauseOnNavigate: true,
        ),
      ),
    );
  }
}

🎛️ Customization #

You can customize player settings:

YoutubeShow(
  url: "https://www.youtube.com/watch?v=VIDEO_ID",
  width: 400,
  height: 300,
  autoPlay: false,
  mute: true,
  looping: true,
  showControls: false,
  showFullScreen: true,
  pauseOnNavigate: false,
)

📝 License #

This package is open-source under the MIT License. See LICENSE for details.


🌟 Like this package? Give it a star on GitHub! 🚀 GithubLink

1
likes
130
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

Youtube Show is a Flutter package that embeds a YouTube player using WebView. It supports autoplay, mute, looping, fullscreen, and video controls. Easily integrate and control YouTube videos in your Flutter app across Android, iOS, and Web without platform-specific setup.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path, youtube_player_iframe

More

Packages that depend on youtube_show