Skip to content

libnativeapi/nativeapi-flutter

Repository files navigation

nativeapi

Flutter bindings for nativeapi - providing seamless, unified access to native system APIs.

🚧 Work in Progress: This package is currently under active development.

Getting Started

Add nativeapi to your pubspec.yaml:

dependencies:
  nativeapi: ^0.1.0-dev.1

Then run:

flutter pub get

Usage

📖 Detailed documentation and examples are coming soon!

import 'package:nativeapi/nativeapi.dart';

// Example usage will be added here

Development

Prerequisites

  • Flutter (>=3.3.0)
  • Dart SDK (>=3.1.0)

Setup

  1. Clone the repository:
git clone https://github.com/libnativeapi/nativeapi-flutter.git
cd nativeapi-flutter
  1. Initialize submodules:
git submodule update --init --recursive
  1. Install dependencies:
flutter pub get
  1. Run the example app:
cd example
flutter run

FFI Bindings

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

License

MIT

About

Flutter bindings for nativeapi - providing seamless, unified access to native system APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published