flutter_vesti_share 0.0.1
flutter_vesti_share: ^0.0.1

Flutter Android iOS

Flutter Plugin for sharing contents to WhatsApp.

flutter_vesti_share #

Flutter Plugin for sharing contents to social media.

Getting Started #

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

Please check the latest version before installation.

dependencies:
  flutter:
    sdk: flutter
  flutter_vesti_share:
    path: ../flutter_vesti_share/

Usage #

Add the following imports to your Dart code:

import 'package:flutter_vesti_share/flutter_vesti_share.dart';

Methods #

whatsAppImageList({List paths, bool business})

whatsAppText({String msg = '', String phone = '', bool business})

Example #

List<dynamic> paths = [];
List<dynamic> urls = [
    "https://blurha.sh/assets/images/img1.jpg",
    "https://blurha.sh/assets/images/img1.jpg"
];
for(final url in urls){
    File file = await DefaultCacheManager().getSingleFile(url);
    paths.add(file.path);
}
await Share().whatsAppImageList(
    paths: paths,
    business: false
);

await Share().whatsAppText(
    msg: "Hi",
    phone: "5511954976161",
    business: false
);
3
likes
70
pub points
41%
popularity

Flutter Plugin for sharing contents to WhatsApp.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

dritec@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_vesti_share