{"id":22358210,"url":"https://github.com/fluttercandies/flutter_get_native_icon","last_synced_at":"2025-08-08T08:07:42.992Z","repository":{"id":263932575,"uuid":"891834437","full_name":"fluttercandies/flutter_get_native_icon","owner":"fluttercandies","description":"Get native icon as flutter widget, Get system desktop app icon and name, Get current app logo.","archived":false,"fork":false,"pushed_at":"2025-06-29T06:08:19.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-29T07:23:28.419Z","etag":null,"topics":["flutter","native-apps"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercandies.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,"zenodo":null}},"created_at":"2024-11-21T03:15:54.000Z","updated_at":"2025-06-29T06:08:22.000Z","dependencies_parsed_at":"2024-11-21T04:21:29.098Z","dependency_job_id":"6258f48e-01fe-4498-bb65-46f9b3d595ec","html_url":"https://github.com/fluttercandies/flutter_get_native_icon","commit_stats":null,"previous_names":["fluttercandies/flutter_get_native_icon"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fluttercandies/flutter_get_native_icon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_get_native_icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_get_native_icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_get_native_icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_get_native_icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/flutter_get_native_icon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_get_native_icon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267867802,"owners_count":24157357,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flutter","native-apps"],"created_at":"2024-12-04T14:56:44.155Z","updated_at":"2025-07-30T12:31:25.157Z","avatar_url":"https://github.com/fluttercandies.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_get_native_icon\n\nflutter_get_native_icon on pub: https://pub.dev/packages/flutter_get_native_icon\n\nGet native icon as flutter widget, Get system desktop app icon and name.\n\nonly support ios now.\n\n## Getting Started\n\ndepend on the plugin in your `pubspec.yaml` file.\n\n```yaml\ndependencies:\n  flutter_get_native_icon: ^0.0.4\n```\n\nimport the plugin.\n\n```dart\nimport 'package:flutter_get_native_icon/flutter_get_native_icon.dart';\n```\n\nuse the widget\n\n```dart\n@override\nWidget build(BuildContext context) {\n  return Scaffold(\n    appBar: AppBar(\n      title: Text('App Icon Display'),\n    ),\n    body: Center(child: NativeAppIconWidget()),\n  );\n}\n```\n\nthe `NativeAppIconWidget()` you can use in any where.\n\n# Recommended Tools\nuse flutter_launcher_icons to generate the app icon.\npub: https://pub.dev/packages/flutter_launcher_icons\n\nand please do not use `icons_launcher` because\nhttps://github.com/mrrhak/icons_launcher/issues/70\n\n\n## Properties\n\n| Property | Type | Description |\n|----------|------|-------------|\n| `width` | `double?` | The width of the icon |\n| `height` | `double?` | The height of the icon |\n| `fit` | `BoxFit?` | How the icon should be inscribed into its box |\n| `color` | `Color?` | The color to tint the icon with |\n| `colorBlendMode` | `BlendMode?` | The blend mode for applying the color |\n| `opacity` | `Animation\u003cdouble\u003e?` | The opacity of the icon |\n| `alignment` | `AlignmentGeometry?` | How to align the icon within its bounds |\n| `margin` | `EdgeInsetsGeometry?` | The margin around the icon |\n| `shape` | `BoxShape` | The shape of the icon (rectangle or circle) |\n| `borderRadius` | `BorderRadius?` | The border radius when shape is rectangle |\n\n\n## About get native app Name\nsee `package_info_plus` plugin and use code:\n```dart\n  Future\u003cvoid\u003e _loadAppInfo() async {\n    PackageInfo packageInfo = await PackageInfo.fromPlatform();\n    setState(() {\n      appName = packageInfo.appName;\n    });\n  }\n```\n\n## picture\n![App Icon](img/2024-11-21%2011.16.33.jpeg)\n\n# fully demo\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_get_native_icon/flutter_get_native_icon.dart';\n\nclass MyHomePage extends StatefulWidget {\n  @override\n  _MyHomePageState createState() =\u003e _MyHomePageState();\n}\n\nclass _MyHomePageState extends State\u003cMyHomePage\u003e {\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: Text('App Icon Display'),\n      ),\n      body: Center(child: NativeAppIconWidget()),\n    );\n  }\n}\n\nvoid main() {\n  runApp(MaterialApp(\n    home: MyHomePage(),\n  ));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutter_get_native_icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fflutter_get_native_icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutter_get_native_icon/lists"}