esysberlin / esys-flutter-share

A Flutter plugin for sharing files & text with other applications.
Apache License 2.0
130 stars 147 forks source link

Fix iPhone/iPad Share #62

Open diegoveloper opened 4 years ago

diegoveloper commented 4 years ago

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

diegoveloper commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

Try :

flutter clean
flutter packages upgrade
ryanbliss commented 4 years ago

No luck there, unfortunately

diegoveloper commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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