video_viewer 1.0.3+1 copy "video_viewer: ^1.0.3+1" to clipboard
video_viewer: ^1.0.3+1 copied to clipboard

outdated

Multiplatform minimalist video viewer with spectacular user experience.

example/lib/main.dart

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

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

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomePage(),
      title: 'Video Viewer Example',
      debugShowCheckedModeBanner: false,
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  String image =
      "https://rockcontent.com/es/wp-content/uploads/2019/02/thumbnail.png";
  Map<String, String> src = {
    "1080p":
        "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4",
    "720p":
        "https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4",
  };

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey[100],
      body: SafeArea(
        child: ListView(children: [
          VideoViewer(
            onFullscreenFixLandscape: false,
            source: getNetworkVideoSources(src),
            style: VideoViewerStyle(
              thumbnail: Image.network(image),
            ),
          ),
        ]),
      ),
    );
  }
}
216
likes
0
pub points
85%
popularity

Publisher

verified publisherfelipemurguia.com

Multiplatform minimalist video viewer with spectacular user experience.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, helpers, universal_html, video_player

More

Packages that depend on video_viewer