cnativeapi 0.3.0 copy "cnativeapi: ^0.3.0" to clipboard
cnativeapi: ^0.3.0 copied to clipboard

Native API C bindings for Flutter

cnativeapi #

Native API C bindings for Flutter, auto-generated via ffigen from the libnativeapi C library.

This package provides low-level FFI bindings and is typically used as an internal dependency of nativeapi. You generally don't need to depend on it directly.

Platform Support #

Android iOS Linux macOS Windows
✅ ✅ ✅ ✅ ✅

Usage #

If you need to use the raw C bindings directly:

import 'package:cnativeapi/cnativeapi.dart';

For higher-level Dart APIs, use the nativeapi package instead.

Regenerating Bindings #

Bindings are generated from C headers using ffigen. To regenerate:

cd packages/cnativeapi
dart run ffigen --config ffigen.yaml

Regeneration is needed when:

License #

MIT

2
likes
150
points
4.48k
downloads

Documentation

API reference

Publisher

verified publisherleanflutter.dev

Weekly Downloads

Native API C bindings for Flutter

License

MIT (license)

Dependencies

ffi, flutter

More

Packages that depend on cnativeapi

Packages that implement cnativeapi