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

A Flutter package that opens YouTube videos in a WebView.

youtube_web_player #

A Flutter package for playing YouTube videos in a native WebView.

Getting Started #

To use this package, add it to your pubspec.yaml:

dependencies:
  youtube_web_player: ^0.0.3

or #

flutter pub add youtube_web_player

Using the player #

@override
Widget build(BuildContext context) {
  return MaterialApp(
  title: 'Flutter Demo',
  theme: ThemeData(
    colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
    useMaterial3: true,
  ),
  home: Scaffold(
      body: Center(
        child: SizedBox(
          height: MediaQuery.of(context).size.height * 0.5,
          // https://www.youtube.com/watch?v=LpRZi_cOSOI
          child: YoutubeWebPlayer(videoId: 'LpRZi_cOSOI'),
        ),
      ),
    ),
  );
}
13
likes
0
points
102
downloads

Publisher

verified publisherrony.fun

Weekly Downloads

A Flutter package that opens YouTube videos in a WebView.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_inappwebview

More

Packages that depend on youtube_web_player