flutter_native_bridge 1.0.0 copy "flutter_native_bridge: ^1.0.0" to clipboard
flutter_native_bridge: ^1.0.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.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
10
likes
140
points
232
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!

Topics

#native #bridge #android #ios #method-channel

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_native_bridge

Packages that implement flutter_native_bridge