{"id":20772866,"url":"https://github.com/101loop/skeleton-text","last_synced_at":"2025-08-03T01:13:52.744Z","repository":{"id":54184810,"uuid":"182145367","full_name":"101Loop/Skeleton-Text","owner":"101Loop","description":"Flutter package for Skeleton Text Animation","archived":false,"fork":false,"pushed_at":"2023-09-01T11:03:33.000Z","size":4787,"stargazers_count":36,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T00:29:14.145Z","etag":null,"topics":["animation","dart","flutter","library","package","shimmer"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/101Loop.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}},"created_at":"2019-04-18T19:25:28.000Z","updated_at":"2023-12-05T08:07:41.000Z","dependencies_parsed_at":"2024-06-20T00:06:56.110Z","dependency_job_id":"f98c0770-ae01-4bd9-8aed-2dd641583d90","html_url":"https://github.com/101Loop/Skeleton-Text","commit_stats":{"total_commits":29,"total_committers":6,"mean_commits":4.833333333333333,"dds":0.5172413793103448,"last_synced_commit":"9692721596004a763a2eafa33146cc0690800917"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FSkeleton-Text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FSkeleton-Text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FSkeleton-Text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/101Loop%2FSkeleton-Text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/101Loop","download_url":"https://codeload.github.com/101Loop/Skeleton-Text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225035973,"owners_count":17410789,"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":["animation","dart","flutter","library","package","shimmer"],"created_at":"2024-11-17T12:23:18.930Z","updated_at":"2024-11-17T12:23:19.406Z","avatar_url":"https://github.com/101Loop.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# skeleton_text\n  \nA package provides an easy way to add skeleton text loading animation in Flutter project  \n  \n\u003cp\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/101Loop/Skeleton-Text/master/assets/preview2.gif\" height=\"50%\" width=\"50%\" /\u003e\n\u003c/p\u003e\n \n## Dependency \n```\ndependencies:\n  skeleton_text: \n```\n \n## How To Use  \n  \n  ```\n  import 'package:skeleton_text/skeleton_text.dart';\n  ```\n\n\u003e To achieve the above example animation use the following code :\n\n     ListView.builder(\n       scrollDirection: Axis.vertical,\n       physics: BouncingScrollPhysics(),\n       itemCount: 5,\n       itemBuilder: (BuildContext context, int index) {\n         return Container(\n           height: 240,\n           margin: EdgeInsets.symmetric(horizontal: 20),\n           child: Row(\n             children: [\n               Expanded(\n                 child: SkeletonAnimation(\n                   shimmerColor: Colors.grey,\n                   borderRadius: BorderRadius.circular(20),\n                   shimmerDuration: 1000,\n                   child: Container(\n                     decoration: BoxDecoration(\n                       color: Colors.grey[300],\n                       borderRadius: BorderRadius.circular(20),\n                       boxShadow: shadowList,\n                     ),\n                     margin: EdgeInsets.only(top: 40),\n                   ),\n                 ),\n               ),\n               Expanded(\n                 child: Container(\n                   margin: EdgeInsets.only(top: 60, bottom: 20),\n                   decoration: BoxDecoration(\n                     color: Colors.grey,\n                     boxShadow: shadowList,\n                     borderRadius: BorderRadius.only(\n                       topRight: Radius.circular(20),\n                       bottomRight: Radius.circular(20),\n                     ),\n                   ),\n                   child: Column(\n                     mainAxisAlignment: MainAxisAlignment.spaceEvenly,\n                     crossAxisAlignment: CrossAxisAlignment.start,\n                     mainAxisSize: MainAxisSize.max,\n                     children: \u003cWidget\u003e[\n                       Padding(\n                         padding: const EdgeInsets.only(left: 15.0, bottom: 5.0),\n                         child: SkeletonAnimation(\n                           borderRadius: BorderRadius.circular(10.0),\n                           shimmerColor: index % 2 != 0 ? Colors.grey : Colors.white54,\n                           child: Container(\n                             height: 30,\n                             width: MediaQuery.of(context).size.width * 0.35,\n                             decoration: BoxDecoration(\n                                 borderRadius: BorderRadius.circular(10.0),\n                                 color: Colors.grey[300]),\n                           ),\n                         ),\n                       ),\n                       Padding(\n                         padding: const EdgeInsets.only(left: 15.0),\n                         child: Padding(\n                           padding: const EdgeInsets.only(right: 5.0),\n                           child: SkeletonAnimation(\n                             borderRadius: BorderRadius.circular(10.0),\n                             shimmerColor: index % 2 != 0 ? Colors.grey : Colors.white54,\n                             child: Container(\n                               width: 60,\n                               height: 30,\n                               decoration: BoxDecoration(\n                                   borderRadius: BorderRadius.circular(10.0),\n                                   color: Colors.grey[300]),\n                             ),\n                           ),\n                         ),\n                       ),\n                     ],\n                   ),\n                 ),\n               ),\n             ],\n           ),\n         );\n       },\n     )\n\n## Explanation \n\nI have created a List builder of 5 Containers. Wrapping any widget by SkeletonAnimation would give a beautiful loading animation.\n\n## SkeletonAnimation\u003cT\u003e Constructor :\n\n```\n  SkeletonAnimation({\n      @required this.child,\n      this.shimmerColor = Colors.white54,\n      this.gradientColor = const Color.fromARGB(0, 244, 244, 244),\n      this.curve = Curves.fastOutSlowIn,\n      this.borderRadius = const BorderRadius.all(Radius.circular(0)),\n      this.shimmerDuration = 1000,\n      Key key,\n    })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F101loop%2Fskeleton-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F101loop%2Fskeleton-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F101loop%2Fskeleton-text/lists"}