Comments (13)
i use this plugin to share binary data directly and not a file path
@neckaros well, that's a bit of a moot point.. as this plugin does nothing else than write those bytes into a temporary file.. just copy this 3 line function into your own project.. (the only required change would be to use the file's extension to specify the mime type, instead of directly the mime type :-( )
esys-flutter-share/lib/esys_flutter_share.dart
Lines 31 to 33 in 1e2b0c2
from esys-flutter-share.
I looked around and found share
. I recommend switching over to it: https://pub.dev/packages/share, it serves the same purpose, but is actually maintained and is provided by Google itself (has null safety already)
from esys-flutter-share.
Oh man, last update was 2 years ago. What are some good alternatives to this packages? This stops us from going sound null safe
from esys-flutter-share.
I updated my branch that work on iPad to null safety if it can help you
I have not done much testing!
esys_flutter_share:
git:
url: git://github.com/neckaros/esys-flutter-share.git
from esys-flutter-share.
Thanks
i don't think it is as flexible. for ex i use this plugin to share binary data directly and not a file path
from esys-flutter-share.
Little note:
getTemporaryDirectory()
is from the path_provider package, File
is from "dart:io".
from esys-flutter-share.
This package is blocking from upgrading another versions of other packages. Are there no other plans.
from esys-flutter-share.
i use this plugin to share binary data directly and not a file path
@neckaros well, that's a bit of a moot point.. as this plugin does nothing else than write those bytes into a temporary file.. just copy this 3 line function into your own project.. (the only required change would be to use the file's extension to specify the mime type, instead of directly the mime type :-( )
esys-flutter-share/lib/esys_flutter_share.dart
Lines 31 to 33 in 1e2b0c2
I confirm that it works fine using these 3 lines of code along with share_plus plugin
When you share with share_plus
, it doesn't accept to mimeType
so I didn't like it.
Eg. if you share an image, you expect some options like whatsapp, instagram and "save to gallery". share_plus
doesn't do that.
from esys-flutter-share.
moot
please add line also that we put in share function
from esys-flutter-share.
Little note:
getTemporaryDirectory()
is from the path_provider package,File
is from "dart:io".
please will you post proper code snippet to share an image from URL using google share pckg
from esys-flutter-share.
I looked around and found
share
. I recommend switching over to it: https://pub.dev/packages/share, it serves the same purpose, but is actually maintained and is provided by Google itself (has null safety already)
@shilangyu Good luck sharing with the Google plugin anything of substantial size https://stackoverflow.com/questions/28729955/max-size-of-string-data-that-can-be-passed-in-intents/42158221
from esys-flutter-share.
i use this plugin to share binary data directly and not a file path
@neckaros well, that's a bit of a moot point.. as this plugin does nothing else than write those bytes into a temporary file.. just copy this 3 line function into your own project.. (the only required change would be to use the file's extension to specify the mime type, instead of directly the mime type :-( )
esys-flutter-share/lib/esys_flutter_share.dart
Lines 31 to 33 in 1e2b0c2
I confirm that it works fine using these 3 lines of code along with share_plus plugin
from esys-flutter-share.
https://pub.dev/packages/vocsy_esys_flutter_share
Use this Package its working on latest version
from esys-flutter-share.
Related Issues (20)
- Wrong mimeType when sharing single File HOT 1
- Return result after the share action is completed.
- Share image with text and subject not working HOT 1
- App crashes on IOS if the root view controller is not FlutterViewController
- My path on rootBundle, just it works after Hot Reload be triggered( Android Studio) HOT 1
- Share image byte showing error in logs HOT 1
- How do I add "Save image to device"?
- How to directly open whatsapp? and particular selected number Is that possible? HOT 3
- Text is not shown when sharing image on facebook or instagram HOT 4
- esys_flutter_share text to whatsapp failed HOT 3
- Deprecated API HOT 1
- Send Single time Text with Images on WhatsApp. HOT 2
- No apps can perorm this action HOT 1
- Error while sharing in iPad HOT 4
- Dependency path_provider HOT 8
- Using deprecated api HOT 2
- Please upgrade the version for path_provider to the latest version HOT 3
- The plugins `esys_flutter_share` use a deprecated version of the Android embedding. HOT 2
- java.lang.SecurityException: Permission Denial: reading de.esys.esysfluttershare.EsysFlutterShareFileProvider uri content HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esys-flutter-share.