instagram_share 0.1.8
instagram_share: ^0.1.8 copied to clipboard
Flutter plugin allowing to share media to Instagram by using native mechanisms
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:instagram_share/instagram_share.dart';
void main() => runApp(ShareApp());
class ShareApp extends StatefulWidget {
@override
_ShareAppState createState() => _ShareAppState();
}
class _ShareAppState extends State<ShareApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Sharing App'),
),
body: Center(
child: MaterialButton(child: Text('Share'), onPressed: () {
InstagramShare.share('/', 'image');
}),
),
),
);
}
}