Skip to content

Commit

Permalink
fix share button on iPad (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryHsiao authored Jul 21, 2024
1 parent d4996dd commit 759d677
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/src/view/api_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ class _ApiDetailsPageState extends State<ApiDetailsPage> {
),
IconButton(
onPressed: () {
Share.share(widget.api.toString());
Share.share(
widget.api.toString(),
sharePositionOrigin: Rect.fromLTWH(
0,
0,
MediaQuery.of(context).size.width,
MediaQuery.of(context).size.height / 2,
),
);
},
icon: const Icon(Icons.share),
),
Expand Down

0 comments on commit 759d677

Please sign in to comment.