flutter_outreach 0.0.5
flutter_outreach: ^0.0.5 copied to clipboard
Flutter plugin for sending text and medias to many channels like Whatsapp / Line ...
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_outreach/flutter_outreach.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
FlutterOutreach.sendInstantMessaging(text: "test", recipients: [
'+972542425732'
], urls: [
'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/ElephantsDream.jpg',
'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4'
]);
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: const Center(
child: Text('Running on:'),
),
),
);
}
}