GithubHelp home page GithubHelp logo

devdennysegura / flutter-advanced-share Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mertcandinler/flutter-advanced-share

0.0 1.0 0.0 130 KB

Flutter plugin for sharing

License: MIT License

Java 43.52% Objective-C 5.26% Dart 41.72% Ruby 9.50%

flutter-advanced-share's Introduction

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: "content://{applicationId}.adv_provider/shared/myfile.jpg"
);
    AdvancedShare.whatsapp(msg: "It's okay :)")
	.then((response) {
      handleResponse(response, appName: "Whatsapp");
    });

flutter-advanced-share's People

Contributors

devdennysegura avatar mertcandinler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.