패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.6.1

nativeapi_flutter

nativeapi용 플러터 통합: 위젯, dart:ui 변환 및 package:nativeapi 기반의 다중 창 브리지.

AndroidiOSLinuxmacOSWindows
30일 다운로드
5.9만
좋아요
4
Pub 점수
160

패키지 설치

flutter pub add nativeapi_flutter

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

nativeapi_flutter는 nativeapi 프레임워크와의 원활한 통합을 가능하게 하는 Flutter 패키지로, 위젯, Dart:ui 변환 및 멀티윈도우 브리지 기능을 제공합니다. Flutter 애플리케이션을 네이티브 플랫폼 기능과 연결하여 고급 UI 기능과 크로스플랫폼 윈도우 관리를 활용할 수 있도록 합니다. 고성능 렌더링과 네이티브 상호운용성을 위해 설계되었으며, Android, iOS, Linux, macOS, Windows를 지원합니다. 이 패키지는 플랫폼 일관성을 유지하면서 플러터 UI 툴킷에 네이티브 수준의 기능을 확장하여 강화합니다.

사용 사례

  • 다중 창 Flutter 앱 빌드
  • 네이티브 UI 컴포넌트 통합
  • 플랫폼별 렌더링 기능 활성화
  • 하이브리드 데스크톱/모바일 애플리케이션 만들기
  • 네이티브 API 접근을 통한 플러터 확장

주요 기능

  • 네이티브 위젯 통합
  • Dart:ui 변환 유틸리티
  • 다중 창 윈도우 브리지
  • 크로스 플랫폼 지원 (Android, iOS, Linux, macOS, Windows)
  • 고성능 렌더링

적합한 대상

  • 고급 크로스플랫폼 UI를 구축하는 개발자
  • 네이티브 수준의 플랫폼 통합을 필요로 하는 팀
  • 다중 창 지원이 필요한 애플리케이션
  • 데스크톱 및 모바일 플랫폼을 대상으로 하는 Flutter 개발자
  • nativeapi 프레임워크를 활용하는 프로젝트

고려 사항

  • 네이티브API 프레임워크에 익숙해야 합니다
  • 네이티브 통합으로 인해 앱의 복잡성이 증가할 수 있습니다
  • 소스 코드 외에 문서가 제한적임
  • 네이티브API의 안정성에 의존
  • 다중 창 동작에서의 잠재적인 플랫폼 전용 특이성

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

nativeapi

Unified access to native system APIs — windows, tray icons, menus, displays, keyboard, dialogs, storage and more — from Dart/Flutter, Rust, C#, JavaScript/TypeScript, Python and Go, all built on one C++ core.

Android iOS Linux macOS Windows
✅ ✅ ✅ ✅ ✅

🚧 Work in Progress: the API is under active development.

This repository is the home of every binding: the Dart, Rust, C#, JS, Python and Go bindings, the code generator, the design specs and the shared tooling live here directly, and the C++ core (nativeapi-core) is checked out as a git submodule. A core change and its regenerated bindings (core → codegen → bindings) are made and tracked together.

Bindings

Binding Packages Status
Dart / Flutter nativeapi, cnativeapi on pub.dev; nativeapi_flutter (not yet published) published
Rust nativeapi, cnativeapi on crates.io published
C# NativeAPI not yet on NuGet; build from source
JavaScript / TypeScript nativeapi (Node-API addon for Node.js, Deno and Bun) not yet on npm
Python nativeapi (ctypes, Python 3.10+) prototype, not yet on PyPI
Go github.com/libnativeapi/nativeapi/bindings/go (cgo, Go 1.22+) build from source

Each binding's README covers installation and usage.

History

This repository was nativeapi-flutter, then nativeapi-workspace, and is now nativeapi; the old names redirect here, and its history, issues and stars carry over. The histories of the former workspace, nativeapi-rust and nativeapi-csharp repositories are merged in, so the Rust and C# bindings keep their full history under bindings/. The old nativeapi-rust and nativeapi-csharp repositories are archived.

Layout

Path Description
core submodule: the C++ core library (nativeapi-core)
bindings/dart Dart binding (packages nativeapi, cnativeapi, nativeapi_flutter)
bindings/rust Rust binding (crates nativeapi, cnativeapi)
bindings/csharp C# binding
bindings/js JavaScript / TypeScript binding (Node-API addon)
bindings/python Python binding (ctypes)
bindings/go Go binding (cgo)
examples example apps of every binding, prefixed by binding: flutter_*, rust_*, csharp_*, js_*, python_*, go_*, …
tools/codegen the C ABI and binding generators
specs design rules for the core's public API

Getting started

git clone --recursive https://github.com/libnativeapi/nativeapi.git

Already cloned without --recursive?

git submodule update --init --recursive

The root pubspec.yaml is the pub workspace (and melos) root for the Dart packages and the Flutter examples, and the root Cargo.toml is the cargo workspace for the Rust crates and examples, so flutter pub get and cargo build run from the repository root. The C# solution is bindings/csharp/NativeAPI.slnx.

Code generation

tools/codegen generates the C ABI and all language bindings from the C++ headers in core/. Run it via the wrapper script:

./codegen         # full run: C ABI, then all bindings
./codegen check   # verify generated files are up to date (CI mode)
./codegen readme  # copy the shared README sections (tools/readme/) into every README
./codegen sync    # after a core change: regenerate everything, rerun
                  #   bindgen/ffigen, and commit core, then this repo
                  #   (add --push to also push, -m "..." for the core message)

See tools/codegen/README.md for details.

Common tasks

make status   # working-tree status of this repo and the core submodule
make sync     # fast-forward core to origin/main
make bump     # stage the updated core pointer for commit

Work on the bindings, the tooling and the specs is committed here directly. Work inside core is committed and pushed from that subdirectory as if it were a standalone clone; this repository then records the updated pointer once the combination is known to be compatible.

Issues

Releases

Each binding is released from a tag of its own: v<version> publishes the Dart packages to pub.dev (dart-release.yml), rust-v<version> publishes the crates to crates.io (rust-release.yml). The C#, JS, Python and Go bindings are not published yet.

License

MIT

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.

순위