drive_direct_download 0.0.2
drive_direct_download: ^0.0.2 copied to clipboard
Drive Direct Downloader is a powerful Flutter package that simplifies Google Drive files by providing direct download links. With Drive Direct Downloader, developers can effortlessly download files fr [...]
Drive Direct Download
Features #
Drive Direct Downloader is a powerful Flutter package that simplifies Google Drive files by providing direct download links. With Drive Direct Downloader, developers can effortlessly download files from Google Drive with ease. Say goodbye to complex authentication processes and hello to seamless file retrieval and management, all within your Flutter app!
Getting started #
Add this package to pubspec.yaml.
Usage #
ElevatedButton( child: const Text(""), onPressed: () { DriveDirect.download(driveLink: "YOUR_DRIVE_LINK").then((value) { setState(() { _downloadLink = value; Here value is your drive downloadable link }); }); }, ),
import 'package:bhakti_pdfs/values/drive_direct_download.dart';
import 'package:flutter/material.dart';
import 'package:dio/dio.dart';
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
String? _downloadLink;
class _HomePageState extends State<HomePage> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Center(
child: ElevatedButton(
child: const Text(""),
onPressed: () {
DriveDirect.download(driveLink: "YOUR_DRIVE_LINK").then((value) {
setState(() {
_downloadLink = value;
//Here value is your drive downloadable link
});
});
},
),
);
}
}
Additional information #
Use Git Repo For Contribute