bridge_native 1.0.1
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.dartfromlib/bridge/topigeons/directory to comply with pub.dev requirements
Changed #
- Updated
flutter_lintsfrom^1.0.4to^3.0.0for better SDK compatibility - Updated repository URLs in
pubspec.yamlto 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 requestsNativewidget for receiving native-to-Flutter events- Pigeon-based code generation for type safety
- Request-response pattern with
ReqandResclasses - 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:
ReqApifor 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 nativeNativewidget - Listen to native eventsReqclass - Request data modelResclass - Response data modelReqApi- 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