{"id":20450273,"url":"https://github.com/a-mabe/background_hiit_timer","last_synced_at":"2026-03-09T17:14:12.309Z","repository":{"id":188572695,"uuid":"675789324","full_name":"a-mabe/background_hiit_timer","owner":"a-mabe","description":"Flutter background timer package developed for OpenHIIT","archived":false,"fork":false,"pushed_at":"2025-04-14T23:11:09.000Z","size":3343,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T17:03:20.485Z","etag":null,"topics":["background-service","background-timer","flutter","flutter-package","openhiit","timer"],"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/a-mabe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-07T18:17:21.000Z","updated_at":"2025-04-14T23:10:02.000Z","dependencies_parsed_at":"2024-02-27T00:36:47.191Z","dependency_job_id":"e385245e-04a0-49ff-b524-57bbec7c4924","html_url":"https://github.com/a-mabe/background_hiit_timer","commit_stats":null,"previous_names":["a-mabe/background_timer"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/a-mabe/background_hiit_timer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mabe%2Fbackground_hiit_timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mabe%2Fbackground_hiit_timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mabe%2Fbackground_hiit_timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mabe%2Fbackground_hiit_timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-mabe","download_url":"https://codeload.github.com/a-mabe/background_hiit_timer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-mabe%2Fbackground_hiit_timer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30304046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"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":["background-service","background-timer","flutter","flutter-package","openhiit","timer"],"created_at":"2024-11-15T10:52:03.045Z","updated_at":"2026-03-09T17:14:12.291Z","avatar_url":"https://github.com/a-mabe.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# background_hiit_timer\n\nA Flutter package for creating a high-intensity interval training (HIIT) timer with background service capabilities. Originally created for [OpenHIIT](https://github.com/a-mabe/OpenHIIT).\n\n![Screenshot 2024-11-10 at 4 22 43 PM](https://github.com/user-attachments/assets/0c990563-d8b0-4240-b11c-c865845c8ce9)\n\n---\n## Table of Contents\n\n1. [Installation](#installation)\n1. [Basic Usage](#basic-usage)\n    1. [Example Usage](#example-usage)\n1. [Advanced Configuration](#Advanced-Configuration)\n1. [Contributing](#Contributing)\n    1. [Code of Conduct](#Code-of-Conduct)\n1. [Credits](#credits)\n1. [License](#license)\n\n---\n\n## Installation\n\nAdd `background_hiit_timer` to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  background_hiit_timer: ^1.0.0\n```\n\n## Basic Usage\n\nImport `background_hiit_timer` in your Dart file:\n\n```dart\nimport 'package:background_hiit_timer/background_hiit_timer.dart';\n```\n\n1. Ensure that your app is properly configured to handle background execution on both Android and iOS platforms. Refer to [flutter_background_service](https://pub.dev/packages/flutter_background_service) for details.\n\n2. Define a set of intervals:\n\n```\nfinal List\u003cIntervalType\u003e intervals = [\n    IntervalType(\n        id: \"0\",\n        workoutId: \"1\",\n        time: 10, // in seconds\n        name: \"Get ready\",\n        color: 0,\n        intervalIndex: 0,\n        startSound: \"\",\n        halfwaySound: \"\",\n        countdownSound: \"countdown-beep\",\n        endSound: \"\"),\n\n    ...\n\n    IntervalType(\n        id: \"4\",\n        workoutId: \"1\",\n        time: 10, // in seconds\n        name: \"Cooldown\",\n        color: 0,\n        intervalIndex: 4,\n        startSound: \"long-rest-beep\",\n        countdownSound: \"countdown-beep\",\n        endSound: \"horn\",\n        halfwaySound: \"\"),\n  ];\n```\n\n3. Define a controller:\n\n```\nfinal CountdownController _controller = CountdownController(autoStart: true);\n```\n\n4. Create a `Countdown` widget and configure it with your interval settings:\n\n```dart\nCountdown(\n  controller: _controller,\n  intervals: intervals,\n  onFinished: () {},\n  build: (_, TimerState timerState) {\n    Text(timerState.currentMicroSeconds.toString())\n  }\n)\n```\n\n### Example Usage\n\nCheck out the [example](example) directory in this repository for a complete example of how to use `background_hiit_timer` in a Flutter app.\n\n## Advanced Configuration\n\nFor more advanced information, view [the advanced configuration documentation](./doc/advanced_configuration.md).\n\n## Contributing\n\nView the [contributing documentation](./CONTRIBUTING.md). If contributing code changes, please checkout the [testing documentation](./doc/testing.md).\n\n### Code of Conduct\n\nWhen contributing, please keep the [Code of Conduct](./CODE_OF_CONDUCT.md) in mind.\n\n## Credits\n\nThis package is inspired by the [`timer_count_down`](https://pub.dev/packages/timer_count_down) package by [Dizoft Team](https://github.com/DizoftTeam).\n\nShoutout to [`flutter_background_service`](https://pub.dev/packages/flutter_background_service) for making the background timer possible.\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-mabe%2Fbackground_hiit_timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-mabe%2Fbackground_hiit_timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-mabe%2Fbackground_hiit_timer/lists"}