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

A plugin for creating and managing download tasks. Supports iOS and Android.

example/lib/main.dart

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await VideoDownloader.initialize();
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String? _version;

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((_) async {
      _version = await VideoDownloader.getPlatformVersion();
      setState(() {});
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text(_version ?? ''),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () async {},
        ),
      ),
    );
  }
}
1
likes
150
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin for creating and managing download tasks. Supports iOS and Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface, provider, sqflite

More

Packages that depend on video_downloader

Packages that implement video_downloader