{"id":45583950,"url":"https://github.com/cloudacy/flutter_native_barcode_scanner","last_synced_at":"2026-02-23T11:48:47.575Z","repository":{"id":143912330,"uuid":"260561430","full_name":"cloudacy/flutter_native_barcode_scanner","owner":"cloudacy","description":"A barcode scanner for Flutter, using platform native APIs.","archived":false,"fork":false,"pushed_at":"2024-02-23T12:13:19.000Z","size":359,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-23T13:27:19.471Z","etag":null,"topics":["android","flutter","flutter-plugin","ios"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudacy.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}},"created_at":"2020-05-01T21:25:32.000Z","updated_at":"2024-02-23T13:27:21.167Z","dependencies_parsed_at":null,"dependency_job_id":"552e9809-f1e1-4e87-86f1-3e55c7e2ef3b","html_url":"https://github.com/cloudacy/flutter_native_barcode_scanner","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/cloudacy/flutter_native_barcode_scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacy%2Fflutter_native_barcode_scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacy%2Fflutter_native_barcode_scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacy%2Fflutter_native_barcode_scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacy%2Fflutter_native_barcode_scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudacy","download_url":"https://codeload.github.com/cloudacy/flutter_native_barcode_scanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacy%2Fflutter_native_barcode_scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","flutter","flutter-plugin","ios"],"created_at":"2026-02-23T11:48:46.658Z","updated_at":"2026-02-23T11:48:47.544Z","avatar_url":"https://github.com/cloudacy.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_native_barcode_scanner\n\nA barcode scanner for Flutter, using platform native APIs.\n\n⚠️ This package is still in beta stage! ⚠️\n\n## Example\n\n```dart\nclass FlutterNativeBarcodeScannerExample extends StatefulWidget {\n  @override\n  _FlutterNativeBarcodeScannerExampleState createState() =\u003e _FlutterNativeBarcodeScannerExampleState();\n}\n\nclass _FlutterNativeBarcodeScannerExampleState extends State\u003cFlutterNativeBarcodeScannerExample\u003e {\n  final _textureStream = StreamController\u003cFlutterNativeBarcodeScannerTexture\u003e();\n\n  @override\n  void initState() {\n    super.initState();\n\n    _scanBarcode();\n  }\n\n  Future\u003cvoid\u003e _scanBarcode() async {\n    try {\n      // Start the barcode scan.\n      final texture = await FlutterNativeBarcodeScanner.start();\n      if (texture == null) {\n        // Handle error...\n\n        // Stop the barcode scan process.\n        await FlutterNativeBarcodeScanner.stop();\n        return;\n      }\n\n      // Add the returned texture to the textureStream.\n      _textureStream.add(texture);\n\n      // Wait until the first barcode comes in.\n      final code = await FlutterNativeBarcodeScanner.getBarcode();\n      if (code == null) {\n        // Handle error...\n\n        // Stop the barcode scan process.\n        await FlutterNativeBarcodeScanner.stop();\n        return;\n      }\n\n      // Process code ...\n    } catch (e) {\n      // Handle error...\n    } finally {\n      // Stop the barcode scan process.\n      await FlutterNativeBarcodeScanner.stop();\n    }\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(title: Text('barcode scan example')),\n      body: Center(\n        child: StreamBuilder\u003cFlutterNativeBarcodeScannerTexture\u003e(\n          stream: _textureStream.stream,\n          builder: (context, snapshot) {\n            final texture = snapshot.data;\n            if (texture == null) {\n              return CircularProgressIndicator();\n            }\n\n            return FlutterNativeBarcodeScannerPreview(texture: texture);\n          },\n        ),\n      ),\n    );\n  }\n}\n```\n\n## Installation\n\n### Android\n\n**This plugin supports Android 5.0 (\"Lollipop\", SDK 21) or higher.**\n\nAdd the barcode ML model to the `\u003cprojcet-root\u003e/android/app/src/main/AndroidManifest.xml` file of the app.\nhttps://firebase.google.com/docs/ml-kit/android/read-barcodes\n\n```xml\n\u003capplication ...\u003e\n  ...\n  \u003cmeta-data android:name=\"com.google.firebase.ml.vision.DEPENDENCIES\" android:value=\"barcode\" /\u003e\n  \u003c!-- To use multiple models: android:value=\"barcode,model2,model3\" --\u003e\n\u003c/application\u003e\n```\n\n### iOS\n\n**This plugin supports iOS 12.0 or higher.**\n\nMake sure that the `NSCameraUsageDescription` (or `Privacy - Camera Usage Description`) string is set at `ios/Runner/info.plist` to scan codes.\n\n```xml\n\u003ckey\u003eNSCameraUsageDescription\u003c/key\u003e\n\u003cstring\u003e...\u003c/string\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacy%2Fflutter_native_barcode_scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudacy%2Fflutter_native_barcode_scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacy%2Fflutter_native_barcode_scanner/lists"}