Home > Software design >  Flutter Appbar disappears when using Share
Flutter Appbar disappears when using Share

Time:07-02

When I use Share.share using Flutter share_plus package the app bar disappears and the content of the screen moves up...and it doesn't look very nice. Screenshot here Anyone knows why that happens?

CodePudding user response:

Try SafeArea around Scaffold widget.

CodePudding user response:

Try this out It works fine for me

     final RenderBox box = context.findRenderObject() as RenderBox;
     Share.share(shareURL,
       subject: title,
       sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size);
  • Related