esys-flutter-share icon indicating copy to clipboard operation
esys-flutter-share copied to clipboard

Fix iPhone/iPad Share

Open diegoveloper opened this issue 4 years ago • 7 comments

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

diegoveloper avatar Apr 19 '20 16:04 diegoveloper

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

diegoveloper avatar Apr 21 '20 17:04 diegoveloper

@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.

ryanbliss avatar Apr 21 '20 18:04 ryanbliss

Try :

flutter clean
flutter packages upgrade

diegoveloper avatar Apr 21 '20 18:04 diegoveloper

No luck there, unfortunately

ryanbliss avatar Apr 21 '20 18:04 ryanbliss

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?

diegoveloper avatar Apr 21 '20 18:04 diegoveloper

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"

ryanbliss avatar Apr 21 '20 23:04 ryanbliss

@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.

jeyachanthuruj avatar Apr 24 '20 04:04 jeyachanthuruj