bridge_native 1.0.0
bridge_native: ^1.0.0 copied to clipboard
A Flutter plugin that provides type-safe bidirectional communication between Flutter and native platforms (Android/iOS) using Pigeon. Supports request-response pattern and event streaming for seamless [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add bridge_nativeThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
bridge_native: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:bridge_native/bridge/native.dart';
import 'package:bridge_native/pigeon.dart';