Flutter Instagram Sharing

Ivan Terekhin
1 min readApr 25, 2020

--

Flutter is great!

So, you have a nice Flutter application and want to share the media (images/video) to Instagram? You will need to write a native plugin for this because you don’t have access to those capabilities from Flutter. Few libs can help you with sharing functionality at all, but they are supporting common share through system UI’s, so I have developed a little plugin that allows you to share media files to Instagram (Android only at the moment):
https://pub.dev/packages/instagram_share precisely. (it will show nicer dialog).

Just call the code like this: InstagramShare.share('path', 'type (image or video)')

Planning to add the iOS version soon. Maybe tomorrow :) For general sharing capabilities please use the https://pub.dev/packages/share_extend package, it is very cool.

--

--

Ivan Terekhin
Ivan Terekhin

Written by Ivan Terekhin

Mobile developer (Android, iOS, Flutter), AI and GameDev enthusiast. https://www.indiehackers.com/jeuler

Responses (2)