dg_direct_link 1.0.14 dg_direct_link: ^1.0.14 copied to clipboard
Min Thant Htet.
DGHub Studio #
Buy Me a Coffee #
Support Sites #
- VK
- SolidFiles
- MediaFire
- FEmbed
- GoogleDrive
- Ok.ru
- Dropbox
- Vimeo
- Youtube
- IMDB
- Xnxx
Installation #
In the dependencies:
section of your pubspec.yaml
, add the following line:
dependencies:
dg_direct_link: <latest_version>
Import package #
import 'package:dg_direct_link/dg_direct_link.dart';
Example Widget #
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return DGDirectLinkWidget(
url: 'Paste your link',
loading: (){
return //Use your loading widget,
}
error: (){
return //Use your error widget,
}
complete: (){
return //User your complete widget,
}
);
}
}
Example #
DGDirectLink.start('Paste your link').then((links){
}).onError((error, stackTrace) {
});