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

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(
          assetPlaceHolder: 'assest/placeholder.png',
          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"),
              ),
            );
          },
        )),
      ),
    );
  }
}
17
likes
130
points
741
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on video_thumbnail_imageview