{"id":21666436,"url":"https://github.com/doo/flutter_ffi_demo","last_synced_at":"2025-07-17T13:37:50.101Z","repository":{"id":143616342,"uuid":"418862390","full_name":"doo/flutter_ffi_demo","owner":"doo","description":"a demo project of flutter native interactions through dart:ffi","archived":false,"fork":false,"pushed_at":"2022-12-12T16:29:25.000Z","size":34153,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-08T03:34:06.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-19T09:47:49.000Z","updated_at":"2024-07-01T15:58:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"23445f75-cc22-41c9-9dab-8037e413db80","html_url":"https://github.com/doo/flutter_ffi_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doo/flutter_ffi_demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doo%2Fflutter_ffi_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doo%2Fflutter_ffi_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doo%2Fflutter_ffi_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doo%2Fflutter_ffi_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doo","download_url":"https://codeload.github.com/doo/flutter_ffi_demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doo%2Fflutter_ffi_demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265611617,"owners_count":23797928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T11:26:42.931Z","updated_at":"2025-07-17T13:37:50.046Z","avatar_url":"https://github.com/doo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Readme\nThis is example project of how to use opencv with flutter::ffi utilities based on the tutorial in the blog post:\n\n[\"Implementing a Flutter plugin with native OpenCV support via dart::ffi – Part 1\"](https://scanbot.io/blog/implementing-a-flutter-plugin-with-native-opencv-support-via-dartffi-part-1-2/)\n\n[\"Implementing a Flutter plugin with native OpenCV support via dart::ffi – Part 2\"](https://scanbot.io/blog/implementing-a-flutter-plugin-with-native-opencv-support-via-dartffi-part-2-2/)\n## Preparation\n### Install the latest cmake (minimum version is 3.21.1)\n```bash\nbrew install cmake\nbrew unlink cmake \u0026\u0026 brew link cmake\n```\n### Add additional global params to you rc file\n```bash\nexport ANDROID_HOME=/Users/$USER/Library/Android/sdk\nexport ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle\nexport ANDROID_NDK=$ANDROID_NDK_HOME\nexport NDK=$ANDROID_HOME/ndk/23.0.7599858\n```\nHere 23.0.7599858 could be any version \u003e 23.0.75..\n### Don't forget to switch you console to the new source!!\n\n## Prebuild opencv for both platforms\nThis will take some big amount of time cause we need to build opencv for ios and android for ALL architectures\n```bash\ncd src\nsh prebuild.sh\n```\n### For ios also need to call build.sh from the ios folder\nThis script will prepare ios `framework` file that will contain all c++ code. It also should be applied each time you change c++ code and need to check it or iphone\n```bash\ncd src/ios\nsh build.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoo%2Fflutter_ffi_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoo%2Fflutter_ffi_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoo%2Fflutter_ffi_demo/lists"}