Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Purus/Flutter-Advanced-Share

Open more actions menu
 
 

Repository files navigation

This repository is no longer maintained.

Advanced Share Plugin

Share text and file your flutter app.

Compatible

Only android because i dont have a Mac. Can you give me a mac for gift :)

Usage

add advanced_share as a dependency in your pubspec.yaml file.

Import the library via

import 'package:advanced_share/advanced_share.dart';

Methods

generic({String msg, String url, String title, String subject, String type})
whatsapp({String msg, String url})
gmail({String subject, String msg, String url})

Result values

Value Result
0 Failed
1 Success
2 {App} isnt installed.
3 dont know 😄

if you using share local file, you need storage permissions.


Parameter Description
String msg Text message
String url Base64 file url or Local file url
String title Chooser title default "Share"
String subject For example mail subject
String type Intent type
Examples
AdvancedShare.generic(
    msg: "Its good.", 
    title: "Share with Advanced Share",
  ).then((response){
	print(response);
});
String BASE64_IMAGE = "data:image/png;base64, ...";
AdvancedShare.generic(
    msg: "Base64 file share", 
    subject: "Flutter",
    title: "Share Image",
    url: BASE64_IMAGE
	).then((response){
	print(response);
	});
AdvancedShare.generic(
    url: "file:///storage/emulated/0/Download/test.txt"
);
    AdvancedShare.whatsapp(msg: "It's okay :)")
	.then((response) {
      handleResponse(response, appName: "Whatsapp");
    });

About

Flutter plugin for sharing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dart 46.4%
  • Java 45.3%
  • Objective-C 5.9%
  • Ruby 2.4%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.