http_downloader 0.0.2 copy "http_downloader: ^0.0.2" to clipboard
http_downloader: ^0.0.2 copied to clipboard

Simply download your files from the internet and save them to the desired location on your device.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:http_downloader/http_downloader_widget.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            HttpDownloaderWidget(
              url: "URL",
              path: "PATH",
              fileName: "FILENAME",
            ),
          ],
        ),
      ),
    );
  }
}
5
likes
150
points
25
downloads

Documentation

API reference

Publisher

verified publisherclomc.xyz

Weekly Downloads

Simply download your files from the internet and save them to the desired location on your device.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on http_downloader