flick_video_player_custom 0.5.3 copy "flick_video_player_custom: ^0.5.3" to clipboard
flick_video_player_custom: ^0.5.3 copied to clipboard

Flick Video Player is a video player for flutter. The video_player plugin gives low level access for the video playback.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flick_video_player_custom/flick_video_player_custom.dart';
import 'package:video_player/video_player.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flick video player custom'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: SingleChildScrollView(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              FlickVideoPlayer(
                  flickManager: FlickManager(
                      videoPlayerController: VideoPlayerController.network(
                          "https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"),
                      additionalFeature: [
                    OptionModel(
                        icon: Icons.hd, onPressFeature: () {}, name: 'Quality')
                  ])),
              FlickVideoPlayer(
                  flickManager: FlickManager(
                videoPlayerController: VideoPlayerController.network(
                    "https://vod-progressive.akamaized.net/exp=1687141886~acl=%2Fvimeo-prod-skyfire-std-us%2F01%2F3132%2F29%2F740663286%2F3417898039.mp4~hmac=0c93ce0cc273ac50104878226579c0423a1a9a5c9d7ed8b6f965cf741e83fb3a/vimeo-prod-skyfire-std-us/01/3132/29/740663286/3417898039.mp4"),
              )),
            ],
          ),
        ),
      ),
    );
  }
}
4
likes
0
pub points
57%
popularity

Publisher

unverified uploader

Flick Video Player is a video player for flutter. The video_player plugin gives low level access for the video playback.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, provider, universal_html, video_player, wakelock

More

Packages that depend on flick_video_player_custom