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

Fix iPhone/iPad Share - #62

Open
diegoveloper wants to merge 4 commits into
esysberlin:masterfrom
aeyrium:master
Open

Fix iPhone/iPad Share#62
diegoveloper wants to merge 4 commits into
esysberlin:masterfrom
aeyrium:master

Conversation

@diegoveloper

@diegoveloper diegoveloper commented Apr 19, 2020

Copy link
Copy Markdown

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

@diegoveloper

Copy link
Copy Markdown
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

ryanbliss commented Apr 21, 2020

Copy link
Copy Markdown

@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
Copy Markdown
Author

Try :

flutter clean
flutter packages upgrade

@ryanbliss

Copy link
Copy Markdown

No luck there, unfortunately

@diegoveloper

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

@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