video_thumbnail_imageview 0.0.1 copy "video_thumbnail_imageview: ^0.0.1" to clipboard
video_thumbnail_imageview: ^0.0.1 copied to clipboard

outdated

The plugin generates thumbnails from a video URL and set in in imageView.

example/main.dart

import 'package:flutter/material.dart';
// ignore: avoid_relative_lib_imports
import '../lib/video_thumbnail_imageview.dart';

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

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

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Center(
            child: VTImageView(
              videoUrl:
              "VIDEO URL",
              width: 200.0,
              height: 200.0,
              errorBuilder: (context, error, stack) {
                return Container(
                  width: 200.0,
                  height: 200.0,
                  color: Colors.green,
                  child: const Center(
                    child: Text("error loading Image"),
                  ),
                );
              },
            )),
      ),
    );
  }
}
19
likes
0
points
601
downloads

Publisher

verified publishertechnoprashant.me

Weekly Downloads

The plugin generates thumbnails from a video URL and set in in imageView.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on video_thumbnail_imageview