flutter_flex_player 0.0.4 copy "flutter_flex_player: ^0.0.4" to clipboard
flutter_flex_player: ^0.0.4 copied to clipboard

A Flutter package to play video from youtube, vimeo, and direct video links with custom UI.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'video_player_screen.dart';

void main() {
  runApp(const MyApp());
}

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const HomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Flutter Demo'),
      ),
      body: Center(
        child: ElevatedButton(
            onPressed: () {
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (context) => const VideoPlayerScreen(),
                ),
              );
            },
            child: const Text("Play")),
      ),
    );
  }
}
6
likes
145
points
41
downloads

Publisher

verified publishersunilflutter.in

Weekly Downloads

A Flutter package to play video from youtube, vimeo, and direct video links with custom UI.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

audio_video_progress_bar, flutter, get, html, http, traffic_stats, video_player, youtube_explode_dart

More

Packages that depend on flutter_flex_player