Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Fix iPhone/iPad Share #62

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

diegoveloper
Copy link

@diegoveloper diegoveloper commented Apr 19, 2020

Fix issues #61 #46 #40 which basically are the same

@diegoveloper
Copy link
Author

For people who want to use these changes , update your pubspec.yaml in this way:

  esys_flutter_share:
    git:
      url: https://github.com/aeyrium/esys-flutter-share

@ryanbliss
Copy link

ryanbliss commented Apr 21, 2020

@diegoveloper just tested this in our instance, and it definitely works on iPad, but not on iPhones; at least on the iPhone 11 Pro Max sim.

@diegoveloper
Copy link
Author

Try :

flutter clean
flutter packages upgrade

@ryanbliss
Copy link

No luck there, unfortunately

@diegoveloper
Copy link
Author

hmm that's weird, what's the error you get? could you check your pubspec.lock and see if my repo is there? did you try in iOS simulator?

@ryanbliss
Copy link

It says:

esys_flutter_share:
    dependency: "direct main"
    description:
      path: "."
      ref: HEAD
      resolved-ref: "53e5080ec3c2c23d62e5791e5b75bed889295726"
      url: "https://github.com/aeyrium/esys-flutter-share"
    source: git
    version: "1.0.2"

@jeyachanthuruj
Copy link

@diegoveloper Thank for your solution.

But still have the problem on iPhone 8 / 13.4.1

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. 
(
    "<NSLayoutConstraint:0x600003a8d720 _UIActivityActionCellTitleLabel:0x7fbb41598790.height >= 22.5   (active)>",
    "<NSLayoutConstraint:0x600003a8d270 V:|-(15)-[_UIActivityActionCellTitleLabel:0x7fbb41598790]   (active, names: '|':UIView:0x7fbb4158e5b0 )>",
    "<NSLayoutConstraint:0x600003a8d2c0 V:[_UIActivityActionCellTitleLabel:0x7fbb41598790]-(15)-|   (active, names: '|':UIView:0x7fbb4158e5b0 )>",
    "<NSLayoutConstraint:0x600003a86800 'UIView-Encapsulated-Layout-Height' UIView:0x7fbb4158e5b0.height == 52   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600003a8d720 _UIActivityActionCellTitleLabel:0x7fbb41598790.height >= 22.5   (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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants