{"id":21380690,"url":"https://github.com/savannahghi/app_wrapper","last_synced_at":"2026-04-13T11:01:47.575Z","repository":{"id":42231117,"uuid":"375670388","full_name":"savannahghi/app_wrapper","owner":"savannahghi","description":"It is a shared library between BeWell-Consumer and BeWell-Professional and is responsible for putting together everything that these app needs in order to run safely. ","archived":false,"fork":false,"pushed_at":"2022-10-18T12:15:42.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-16T07:57:30.204Z","etag":null,"topics":["dart","device-capabilities","flutter","mobile-app"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/app_wrapper","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/savannahghi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-10T11:14:37.000Z","updated_at":"2024-10-15T08:40:35.000Z","dependencies_parsed_at":"2022-09-20T22:55:03.105Z","dependency_job_id":null,"html_url":"https://github.com/savannahghi/app_wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/savannahghi/app_wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savannahghi%2Fapp_wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savannahghi%2Fapp_wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savannahghi%2Fapp_wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savannahghi%2Fapp_wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savannahghi","download_url":"https://codeload.github.com/savannahghi/app_wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savannahghi%2Fapp_wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["dart","device-capabilities","flutter","mobile-app"],"created_at":"2024-11-22T10:42:23.317Z","updated_at":"2026-04-13T11:01:47.556Z","avatar_url":"https://github.com/savannahghi.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Release](https://img.shields.io/badge/Version-^0.2.2-success.svg?style=for-the-badge)](https://shields.io/)\n[![Maintained](https://img.shields.io/badge/Maintained-Actively-informational.svg?style=for-the-badge)](https://shields.io/)\n\n# app_wrapper\n\n`sil_app_wrapper` is an open source project \u0026mdash; it's one among many other shared libraries that make up the wider ecosystem of software made and open sourced by `Savannah Informatics Limited`.\n\nIt is a shared library between [BeWell-Consumer] and [SladeAdvantage] and is responsible for putting together everything that these app needs in order to run safely.\n\n## Installation Instructions\n\nUse this package as a library by depending on it\n\nRun this command:\n\n- With Flutter:\n\n```dart\n$ flutter pub add app_wrapper\n```\n\nThis will add a line like this to your package's `pubspec.yaml` (and run an implicit dart pub get):\n\n```dart\ndependencies:\n  app_wrapper: ^0.2.2\n```\n\nAlternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.\n\nLastly:\n\nImport it like so:\n\n```dart\nimport 'package:app_wrapper/app_wrapper.dart';\n```\n\n## Usage\n\nLets take a look at how to use AppWrapper to hook up a your application.\n\n```dart\n\nclass YourApp extends StatelessWidget {\n  const YourApp({ Key? key }) : super(key: key);\n\n  @override\n  Widget build(BuildContext context) {\n    return AppWrapper(\n      appName: appName,\n      eventBus: EventBus(),\n      graphQLClient: GraphQlClient(\n      'id_token',\n      'endpoint_url',\n      ),\n      appContexts: \u003cyour_app_Contexts\u003e,\n      child: YourAppEntryWidget(),\n    );\n  }\n}\n```\n\nWith the above snippet, we have successfully hooked up our app to use `AppWrapper`. Your application's element tree now has access to `DeviceCapabilities`, `graphQLClient` etc, that is passed down. These include Device Camera, Device BiometricType (face or fingerprint) and Endpoints.\n\nProvided [here](https://github.com/savannahghi/app_wrapper/blob/main/example/main.dart) is a more detailed snippet, on how to use the package.\n\n## Dart \u0026 Flutter Version\n\n- Dart 2: \u003e= 2.12\n- Flutter: \u003e=2.0.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavannahghi%2Fapp_wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavannahghi%2Fapp_wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavannahghi%2Fapp_wrapper/lists"}