inter_app_communication 0.0.1 copy "inter_app_communication: ^0.0.1" to clipboard
inter_app_communication: ^0.0.1 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'),
          ),
        ),
      ),
    );
  }
}
1
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

this is a plugin for inter app communication.

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on inter_app_communication

Packages that implement inter_app_communication