flutter_native_bridge 1.1.0 copy "flutter_native_bridge: ^1.1.0" to clipboard
flutter_native_bridge: ^1.1.0 copied to clipboard

Zero-boilerplate bridge between Flutter and native platforms. Call native Kotlin/Swift methods from Dart with minimal setup - just annotate and call!

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.1.0 - 2025-12-21 #

Added #

  • EventChannel/Stream Support
    • @NativeStream annotation for streaming methods (Android)
    • StreamSink interface for emitting events to Flutter
    • iOS stream support via WithSink: selector pattern
    • FlutterNativeBridge.stream<T>() runtime API for dynamic stream subscriptions
    • FlutterNativeBridge.discoverStreams() for stream introspection
    • Generated Stream methods in Dart code (Stream<dynamic>)
  • Code Generator
    • Generates Stream methods for @NativeStream annotations
    • Handles generic types (Map, List) correctly

1.0.0 - 2024-12-15 #

Added #

  • Initial release of Flutter Native Bridge
  • Android Support
    • @NativeBridge annotation for exposing entire classes
    • @NativeFunction annotation for exposing individual methods
    • @NativeIgnore annotation for excluding methods
    • Auto-discovery of annotated classes
    • Support for Activity, Context, and no-arg constructors
  • iOS Support
    • Support for classes inheriting from NSObject
    • @objc method exposure
    • Manual registration via FlutterNativeBridge.register()
  • Code Generator
    • Parses Kotlin files for Android annotations
    • Parses Swift files for @objc methods
    • Generates type-safe Dart code with IDE autocomplete
    • Merges classes from both platforms
  • Runtime API
    • FlutterNativeBridge.call<T>() for dynamic method calls
    • NativeBridge class for instance-based calls
    • FlutterNativeBridge.discover() for introspection
  • Type Support
    • Kotlin: String, Int, Long, Double, Float, Boolean, Unit, List, Map
    • Swift: String, Int, Double, Float, Bool, Void, Array, Dictionary
9
likes
150
points
176
downloads

Publisher

verified publisheryoursoft.in

Weekly Downloads

Zero-boilerplate bridge between Flutter and native platforms. Call native Kotlin/Swift methods from Dart with minimal setup - just annotate and call!

Repository (GitHub)
View/report issues

Topics

#native #bridge #android #ios #platform-channel

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_native_bridge

Packages that implement flutter_native_bridge