{"id":15695726,"url":"https://github.com/prongbang/device_detect","last_synced_at":"2025-03-30T13:21:59.121Z","repository":{"id":56827981,"uuid":"468618360","full_name":"prongbang/device_detect","owner":"prongbang","description":"Detect android device info, MIUI version, etc.","archived":false,"fork":false,"pushed_at":"2022-03-11T05:32:41.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T22:52:06.658Z","etag":null,"topics":["detect-miui","miui"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/device_detect","language":"Kotlin","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/prongbang.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}},"created_at":"2022-03-11T05:17:58.000Z","updated_at":"2022-03-11T05:26:47.000Z","dependencies_parsed_at":"2022-08-28T21:10:31.120Z","dependency_job_id":null,"html_url":"https://github.com/prongbang/device_detect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fdevice_detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fdevice_detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fdevice_detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fdevice_detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prongbang","download_url":"https://codeload.github.com/prongbang/device_detect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246320865,"owners_count":20758521,"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":["detect-miui","miui"],"created_at":"2024-10-03T19:04:14.143Z","updated_at":"2025-03-30T13:21:59.076Z","avatar_url":"https://github.com/prongbang.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# device_detect\n\nDetect android device info, MIUI version, etc.\n\n## Getting Started\n\nIt is really easy to use!\nYou should ensure that you add the `device_detect` as a dependency in your flutter project, Supported Android only.\n\n```yaml\ndependencies:\n  device_detect: \"^1.0.0\"\n```\n\n## Feature\n\n- Detect MIUI\n\n```dart\nfinal result = await DeviceDetect.isMi;\n```\n\n- Detect by System Property\n\n```dart\nfinal result = await DeviceDetect.hasSystemProperty('ro.miui.ui.version.name');\n```\n\n## Usage\n\n```dart\nimport 'package:device_detect/device_detect.dart';\nimport 'package:flutter/material.dart';\n\nclass MyApp extends StatelessWidget {\n  const MyApp({Key? key}) : super(key: key);\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: Scaffold(\n        appBar: AppBar(title: const Text('Plugin example app')),\n        body: Center(\n          child: Column(\n            children: [\n              FutureBuilder(\n                future: DeviceDetect.isMi,\n                builder: (_, snapshot) =\u003e Text('MIUI: ${snapshot.data}'),\n              ),\n              FutureBuilder(\n                future: DeviceDetect.hasSystemProperty(\n                  'ro.miui.ui.version.name',\n                ),\n                builder: (_, snapshot) =\u003e Text('MIUI: ${snapshot.data}'),\n              ),\n            ],\n          ),\n        ),\n      ),\n    );\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprongbang%2Fdevice_detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprongbang%2Fdevice_detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprongbang%2Fdevice_detect/lists"}