Skip to content

[Bug] [share_plus] Not working in iPad #951

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

Closed
Harishwarrior opened this issue Jul 8, 2022 · 3 comments
Closed

[Bug] [share_plus] Not working in iPad #951

Harishwarrior opened this issue Jul 8, 2022 · 3 comments
Labels
bug Something isn't working triage

Comments

@Harishwarrior
Copy link

Platform

iOS 15.5

Plugin

share_plus

Version

4.0.10

Flutter SDK

2.10.5

Steps to reproduce

Just create share option.

Code Sample

No response

Logs

[Default] Task Runner[2857]/1#4 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want.
	Try this:
		(1) look at each constraint and try to figure out which you don't expect;
		(2) find the code that added the unwanted constraint or constraints and fix it.
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
    "<NSAutoresizingMaskLayoutConstraint:0x2800903c0 h=-&- v=--& _UIActivityContentNavigationBar:0x10810b830.minY == 0   (active, names: '|':UILayoutContainerView:0x108126c40 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x280093ed0 h=-&- v=--& _UIActivityContentNavigationBar:0x10810b830.height == 50   (active)>",
    "<NSLayoutConstraint:0x280086260 V:[_UIActivityContentNavigationBar:0x10810b830]-(0)-[UIFocusContainerGuide:0x281ce80f0'UINavigationControllerContentFocusContainerGuide']   (active)>",
    "<NSLayoutConstraint:0x280086710 UIFocusContainerGuide:0x281ce80f0'UINavigationControllerContentFocusContainerGuide'.bottom == UILayoutContainerView:0x108126c40.bottom   (active)>",
    "<NSLayoutConstraint:0x2800f90e0 V:|-(0)-[UILayoutContainerView:0x108126c40]   (active, names: '|':UIView:0x107c68960 )>",
    "<NSLayoutConstraint:0x2800fab70 UILayoutContainerView:0x108126c40.bottom == UIView:0x107c68960.bottom   (active)>",
    "<NSLayoutConstraint:0x280088c80 'UIView-Encapsulated-Layout-Height' UIView:0x107c68960.height == 0   (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x280086260 V:[_UIActivityContentNavigationBar:0x10810b830]-(0)-[UIFocusContainerGuide:0x281ce80f0'UINavigationControllerContentFocusContainerGuide']   (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.


### Flutter Doctor

```shell
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.4 21F79 darwin-x64, locale en-IN)
    • Flutter version 2.10.5 at /Users/user2/fvm/versions/2.10.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (3 months ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/user2/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/user2/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/user2/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.68.1)
    • VS Code at /Users/user2/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (1 available)
    • MY's iPad (mobile) • 00008030-001965503CC3C02E • ios • iOS 15.5 19F77

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
@Harishwarrior Harishwarrior added bug Something isn't working triage labels Jul 8, 2022
@Harishwarrior
Copy link
Author

Harishwarrior commented Jul 8, 2022

My bad this is due to not adding the required parameter.

final box = context.findRenderObject() as RenderBox?;

await Share.share(
  text,
  subject: subject,
  sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size, // add this
);

@alexaung
Copy link

alexaung commented Sep 8, 2022

Not working for iPad Pro (12.9-inch) (5th generation) both simulator and physical device.

@miquelbeltran
Copy link
Member

@alexaung please create a new issue ticket

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

3 participants