dg_direct_link 0.0.5 dg_direct_link: ^0.0.5 copied to clipboard
Created by Min Thant Htet.
dg_direct_link #
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().then((links){
}).onError((error, stackTrace) {
});