inter_app_communication 0.0.3
inter_app_communication: ^0.0.3 copied to clipboard
this is a plugin for inter app communication.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:inter_app_communication/inter_app_communication.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _interAppCommunicationPlugin = InterAppCommunication();
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: ElevatedButton(
onPressed: () async {
final result = await _interAppCommunicationPlugin.getPlatformVersion();
print('Result: $result');
},
child: const Text('Get Platform Version'),
),
),
),
);
}
}