Home > Mobile >  How can I detect share sheet open or closed in flutter programmatically
How can I detect share sheet open or closed in flutter programmatically

Time:10-14

In my page, there is a share button by using this share package. Share package

I want, when share sheet comes, the share button become hide, and when share sheet closed, share button wants to be show.. How can I implement this?

CodePudding user response:

Why don't you add this?, Run this command: $ flutter pub add flutter_share

Like what's in here = https://pub.dev/packages/flutter_share/install

CodePudding user response:

instead using share package use flutter_share and use blow code for your purpose.

 await FlutterShare.share(title: ' ', text: ' ', linkUrl: your link, chooserTitle: your title).then((value){
//insert your code here for make btn disapeare
       print('flutter share now is open') });
  • Related