bridge_native 1.0.1 copy "bridge_native: ^1.0.1" to clipboard
bridge_native: ^1.0.1 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 [...]

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2025-12-02 #

Fixed #

  • Fixed Pigeon dependency issue for pub.dev publishing
  • Moved br_api.dart from lib/bridge/ to pigeons/ directory to comply with pub.dev requirements

Changed #

  • Updated flutter_lints from ^1.0.4 to ^3.0.0 for better SDK compatibility
  • Updated repository URLs in pubspec.yaml to point to correct GitHub repository
  • Updated documentation links in README.md

1.0.0 - 2025-12-02 #

Added #

  • Initial release of bridge_native plugin
  • Type-safe bidirectional communication between Flutter and native platforms
  • sendToNative() function for Flutter-to-native requests
  • Native widget for receiving native-to-Flutter events
  • Pigeon-based code generation for type safety
  • Request-response pattern with Req and Res classes
  • EventChannel integration via bridgeStream
  • Support for Android (Kotlin) and iOS (Swift)
  • Complete API documentation and examples

Features #

  • Type-Safe Communication: Compile-time type safety using Pigeon
  • Bidirectional Data Flow: Support for both request-response and event streaming
  • Request API: ReqApi for sending requests to native code
  • Event Streaming: Real-time events from native to Flutter
  • Cross-Platform: Unified API for Android and iOS
  • Simple Integration: Minimal boilerplate required

Technical Details #

  • Pigeon version: 10.1.4
  • Minimum Dart SDK: 2.12.0
  • Maximum Dart SDK: <4.0.0
  • Minimum Flutter: 2.0.0
  • Platforms: Android, iOS

API #

  • sendToNative({key, data}) - Send request to native
  • Native widget - Listen to native events
  • Req class - Request data model
  • Res class - Response data model
  • ReqApi - Pigeon-generated API interface

Documentation #

  • Complete README with:
    • Installation guide
    • Usage examples (Flutter and Native)
    • API reference
    • Architecture diagram
    • Troubleshooting guide
    • Best practices
    • Complete working example

0.1.0 - 2024-11-05 #

Added #

  • Initial project structure
  • Basic Pigeon integration
  • Platform channel setup
0
likes
120
points
93
downloads

Publisher

unverified uploader

Weekly Downloads

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 Flutter-to-native integration.

Repository (GitHub)
View/report issues

Topics

#pigeon #native-bridge #platform-channel #flutter-native #bidirectional-communication

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on bridge_native

Packages that implement bridge_native