Skip to content

Commit

Permalink
优化分享弹窗位置
Browse files Browse the repository at this point in the history
Improve the position of share dialog
  • Loading branch information
jiangtian616 committed Apr 27, 2022
1 parent 72b1ffa commit 82aa299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/pages/details/details_page_logic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class DetailsPageLogic extends GetxController {
Future<void> shareGallery() async {
Share.share(
state.gallery!.galleryUrl,
sharePositionOrigin: Rect.fromLTWH(0, 0, fullScreenWidth, screenHeight / 2),
sharePositionOrigin: Rect.fromLTWH(0, 0, fullScreenWidth, screenHeight * 2 / 3),
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/setting/advanced/loglist/log/log_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _LogPageState extends State<LogPage> {
Share.shareFiles(
[file.path],
text: basename(file.path),
sharePositionOrigin: Rect.fromLTWH(0, 0, fullScreenWidth, screenHeight / 2),
sharePositionOrigin: Rect.fromLTWH(0, 0, fullScreenWidth, screenHeight * 2 / 3),
);
}
}

0 comments on commit 82aa299

Please sign in to comment.