dg_direct_link 1.0.1 dg_direct_link: ^1.0.1 copied to clipboard
Min Thant Htet.
DGHub Studios #
![](https://avatars.githubusercontent.com/u/112307287?v=4 | width=100)
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) {
});