indzooom_android_downloader 1.0.3+1 indzooom_android_downloader: ^1.0.3+1 copied to clipboard
A Plugin to enable faster and more streamlined download management on Android and IOS with option to notify and view the downloaded file directly.
import 'package:flutter/material.dart';
import 'package:indzooom_android_downloader/indzooom_android_downloader.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
void initState() {
super.initState();
IndzooomAndroidDownloader.getPermission();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: IconButton(
icon: Icon(Icons.file_download),
onPressed: () {
IndzooomAndroidDownloader.download(
"https://qd.myapp.com/myapp/qqteam/AndroidQQ/mobileqq_android.apk",
"/ABC",
"mobileqq_android.apk");
},
),
),
),
);
}
}