{"id":32290870,"url":"https://github.com/htsuruo/smooth_highlight","last_synced_at":"2026-05-15T18:03:40.423Z","repository":{"id":57078357,"uuid":"508220311","full_name":"htsuruo/smooth_highlight","owner":"htsuruo","description":"This package allows you to emphasize a specific widget by highlight animation when you want to emphasize something to your users.","archived":false,"fork":false,"pushed_at":"2024-09-01T01:31:25.000Z","size":1359,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T02:59:09.202Z","etag":null,"topics":["dart","flutter","pubdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/smooth_highlight","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/htsuruo.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-28T08:40:13.000Z","updated_at":"2024-09-01T01:31:28.000Z","dependencies_parsed_at":"2023-02-15T14:31:54.050Z","dependency_job_id":null,"html_url":"https://github.com/htsuruo/smooth_highlight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/htsuruo/smooth_highlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htsuruo%2Fsmooth_highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htsuruo%2Fsmooth_highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htsuruo%2Fsmooth_highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htsuruo%2Fsmooth_highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htsuruo","download_url":"https://codeload.github.com/htsuruo/smooth_highlight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htsuruo%2Fsmooth_highlight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","flutter","pubdev"],"created_at":"2025-10-23T02:59:08.595Z","updated_at":"2026-05-15T18:03:40.390Z","avatar_url":"https://github.com/htsuruo.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smooth Highlight\n\nYou can emphasize a specific widget by ***highlight animation*** when you want to emphasize something to your users. As you can see from the following samples, you can use `smooth_highlight` in any widget.\n\nAnd also, you can use `ValueChangeHighlight` that is useful when you simply want to highlight only the text changes(refer to Sample2). It is inspired by the Cloud Firestore value change animation in the Firebase console.\n\n| Sample1 | Sample2 | Sample3 |\n| --- | --- | --- |\n| ![](https://user-images.githubusercontent.com/12729025/185746812-58353f9b-1de7-458e-9319-64444cac48b9.gif) | ![](https://user-images.githubusercontent.com/12729025/185746818-ffe72f20-2acf-4f48-80f7-d039757aa71b.gif) | ![](https://user-images.githubusercontent.com/12729025/185746809-777d992d-d791-4d92-b555-594bdd51c106.gif) |\n\n## Usage\n\nYou just wrap `SmoothHighlight` in your widget.\n\n```dart\nSmoothHighlight(\n  // set your custom color\n  color: Colors.yellow,\n  child: Text('Highlight'),\n);\n```\n\nand you can also define custom behavior.\n\n```dart\nSmoothHighlight(\n  // highlight in initState phase.\n  useInitialHighLight: true,\n\n  // Set custom duration.\n  duration: const Duration(seconds: 1),\n\n  // highlight whenever count is even.\n  enabled: count % 2 ==0,\n);\n```\n\n### ValueChangeHighlight\n\nIf you want to highlight the widget only the value changed, `ValueChangeHighlight` is useful. It requires highlight trigger value.\n\n```dart\nValueChangeHighlight(\n  // highlight if count changes\n  value: count,\n  color: Colors.yellow,\n  child: Text('count: $count'),\n);\n```\n\nif you don't want to highlight a specific values, `disableFromValues` property prevents it.\n\n```dart\nValueChangeHighlight(\n  value: count,\n\n  // disable highlight if count changes from `null` or `2` to some value.\n  // In this counter example, `0`, `3`, won't be highlighted.\n  disableFromValues: const [null, 2],\n);\n```\n\n## UseCase\n\nFollowing gif is Firestore GUI in Firebase Console. Firestore realtime listener is powerful, but it is hard for your user to see ***what value changed***. You can make the user notice by highlighting the changed value. It's probably a user-friendly consideration, I think.\n\n![](https://user-images.githubusercontent.com/12729025/185757958-a0aef8e1-855a-47b0-b99c-7dad5010e2d0.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtsuruo%2Fsmooth_highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtsuruo%2Fsmooth_highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtsuruo%2Fsmooth_highlight/lists"}