tree: b2d6f22f7e9c04fe98b2fc7ed34c4e31aeeb4508 [path history] [tgz]
  1. api/
  2. host_name/
  3. mini_audio/
  4. sqlite/
  5. sqlite_prebuilt/
  6. stb_image/
  7. README.md
pkgs/code_assets/example/README.md

Examples

These examples show how to use package:code_assets in build hooks to bundle native code with Dart and Flutter applications.

ExampleUse CaseUsed Features
host_nameGet the hostname.- Accessing a system library with DynamicLoadingSystem and LookupInProcess.
- OS-specific differences.
mini_audioPlay audio.- C library built from source with package:native_toolchain_c.
- Bundled with DynamicLoadingBundled.
sqliteDatabase access.- C library built from source with package:native_toolchain_c.
- Bundled with DynamicLoadingBundled.
sqlite_prebuiltDatabase access.- Pre-built binary downloaded from the internet or available on host machine.
- Bundled with DynamicLoadingBundled.
stb_imageRead image metadata.- C library built from source with package:native_toolchain_c.
- Bundled with DynamicLoadingBundled.