Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot share a log on iPad #265

Open
justjew opened this issue Sep 26, 2024 · 0 comments
Open

Cannot share a log on iPad #265

justjew opened this issue Sep 26, 2024 · 0 comments

Comments

@justjew
Copy link

justjew commented Sep 26, 2024

Describe the bug
share_plus package requires providing Rect? sharePositionOrigin when using on iPad.
So I cannot share a log file from iPad.

To Reproduce
Steps to reproduce the behavior:

  1. Run on iPad
  2. Open TalkerScreen
  3. Press "Share logs file"
  4. See the exception
[exception] | 11:46:34 619ms | Uncaught app exception
PlatformException(error, sharePositionOrigin: argument must be set, {{0, 0}, {0, 0}} must be non-zero and within coordinate space of source view: {{0, 0}, {1080, 810}}, null, null)
StackTrace: #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2      MethodChannelShare.shareXFiles (package:share_plus_platform_interface/method_channel/method_channel_share.dart:112:20)
<asynchronous suspension>
#3      downloadFile (package:talker_flutter/src/utils/download_logs/download_nonweb_logs.dart:13:3)
<asynchronous suspension>
#4      TalkerViewController.downloadLogsFile (package:talker_flutter/src/controller/talker_view_controller.dart:67:55)
<asynchronous suspension>
#5      _TalkerViewState._shareLogsInFile (package:talker_flutter/src/ui/talker_view.dart:215:5)
<asynchronous suspension>
}

Expected behavior
An ability to provide Rect into e.g. TalkerScreenTheme

Smartphone (please complete the following information):

  • Device: iPad
  • OS: iPadOS 17.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant