Flutter bindings for nativeapi - providing seamless, unified access to native system APIs.
🚧 Work in Progress: This package is currently under active development.
Add nativeapi
to your pubspec.yaml
:
dependencies:
nativeapi: ^0.1.0-dev.1
Then run:
flutter pub get
📖 Detailed documentation and examples are coming soon!
import 'package:nativeapi/nativeapi.dart';
// Example usage will be added here
- Flutter (>=3.3.0)
- Dart SDK (>=3.1.0)
- Clone the repository:
git clone https://github.com/libnativeapi/nativeapi-flutter.git
cd nativeapi-flutter
- Initialize submodules:
git submodule update --init --recursive
- Install dependencies:
flutter pub get
- Run the example app:
cd example
flutter run
This project uses ffigen to generate Dart FFI bindings from C headers. To regenerate the bindings:
flutter pub run ffigen
The ffigen configuration is defined in ffigen.yaml
. You typically need to regenerate bindings when:
- The native C library (libnativeapi) is updated
- The ffigen configuration is modified