youtube_player_iframe 5.2.0 copy "youtube_player_iframe: ^5.2.0" to clipboard
youtube_player_iframe: ^5.2.0 copied to clipboard

Flutter port of the official YouTube iFrame player API. Supports web & mobile platforms.

example/lib/main.dart

// Copyright 2020 Sarbagya Dhaubanjar. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:youtube_player_iframe_example/router.dart';
import 'package:flutter_web_plugins/url_strategy.dart';

Future<void> main() async {
  usePathUrlStrategy();
  runApp(const YoutubeApp());
}

///
class YoutubeApp extends StatelessWidget {
  const YoutubeApp({super.key});

  @override
  Widget build(BuildContext context) {
    final colorScheme = ColorScheme.fromSeed(
      seedColor: Colors.green,
      dynamicSchemeVariant: DynamicSchemeVariant.expressive,
      brightness: Brightness.dark,
    );

    return MaterialApp.router(
      title: 'Youtube Player IFrame Demo',
      theme: ThemeData.from(colorScheme: colorScheme),
      debugShowCheckedModeBanner: false,
      routerConfig: router,
    );
  }
}
582
likes
150
points
110k
downloads
screenshot

Publisher

verified publishersarbagyastha.com.np

Weekly Downloads

Flutter port of the official YouTube iFrame player API. Supports web & mobile platforms.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, meta, url_launcher, webview_flutter, webview_flutter_android, webview_flutter_wkwebview, youtube_player_iframe_web

More

Packages that depend on youtube_player_iframe