These examples show how to use package:code_assets in build hooks to bundle native code with Dart and Flutter applications.
| Example | Use Case | Used Features |
|---|---|---|
host_name | Get the hostname. | - Accessing a system library with DynamicLoadingSystem and LookupInProcess.- OS-specific differences. |
mini_audio | Play audio. | - C library built from source with package:native_toolchain_c.- Bundled with DynamicLoadingBundled. |
sqlite | Database access. | - C library built from source with package:native_toolchain_c.- Bundled with DynamicLoadingBundled. |
sqlite_prebuilt | Database access. | - Pre-built binary downloaded from the internet or available on host machine. - Bundled with DynamicLoadingBundled. |
stb_image | Read image metadata. | - C library built from source with package:native_toolchain_c.- Bundled with DynamicLoadingBundled. |