{"id":19237736,"url":"https://github.com/lanarsinc/top-snackbar-flutter","last_synced_at":"2025-05-16T05:05:09.935Z","repository":{"id":37472151,"uuid":"316811538","full_name":"LanarsInc/top-snackbar-flutter","owner":"LanarsInc","description":"Modern UI snackbar widget","archived":false,"fork":false,"pushed_at":"2025-01-29T17:08:55.000Z","size":16038,"stargazers_count":161,"open_issues_count":0,"forks_count":58,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T05:05:03.740Z","etag":null,"topics":["dart","flutter","flutter-package","ui-challenge","ui-components"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LanarsInc.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":"2020-11-28T19:56:51.000Z","updated_at":"2025-05-09T06:27:36.000Z","dependencies_parsed_at":"2024-12-02T00:30:30.310Z","dependency_job_id":null,"html_url":"https://github.com/LanarsInc/top-snackbar-flutter","commit_stats":{"total_commits":94,"total_committers":10,"mean_commits":9.4,"dds":0.7234042553191489,"last_synced_commit":"eed8efe6d96062c5c1ce8704583914accb32ae0f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Ftop-snackbar-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Ftop-snackbar-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Ftop-snackbar-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanarsInc%2Ftop-snackbar-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LanarsInc","download_url":"https://codeload.github.com/LanarsInc/top-snackbar-flutter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"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":["dart","flutter","flutter-package","ui-challenge","ui-components"],"created_at":"2024-11-09T16:28:04.756Z","updated_at":"2025-05-16T05:05:04.925Z","avatar_url":"https://github.com/LanarsInc.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)\n\nMade in [lanars.com](https://lanars.com).\n\n[![pub package](https://img.shields.io/pub/v/top_snackbar_flutter.svg)](https://pub.dev/packages/top_snackbar_flutter)\n\nIf you need to show the user some information in a nice way, you can use this package. The API is as simple\nas API for regular Material method `showDialog`. If you need to use your own widget to display, you\ncan pass it into `showTopSnackBar` function.\n\n\u003cimg src=\"https://raw.githubusercontent.com/LanarsInc/top-snackbar-flutter/main/example/assets/top-snackbar-example.gif\" width=\"300\"\u003e\n\n# Getting Started\n\nIn order to show a CustomSnackBar you need to call a showTopSnackBar function. You can pass there any widget you want\nbut we have a CustomSnackBar for example.\n\n```dart\nshowTopSnackBar(\n    Overlay.of(context),\n    CustomSnackBar.success(\n      message:\n          \"Good job, your release is successful. Have a nice day\",\n    ),\n);\n```\n\n```dart\nshowTopSnackBar(\n    Overlay.of(context),\n    CustomSnackBar.info(\n      message:\n          \"There is some information. You need to do something with that\",\n    ),\n);\n```\n\n```dart\nshowTopSnackBar(\n    Overlay.of(context),\n    CustomSnackBar.error(\n      message:\n          \"Something went wrong. Please check your credentials and try again\",\n    ),\n);\n```\n\n# Persistent snackbar\nThere is a usage example demo `example/main.dart`\n```dart\nAnimationController localAnimationController;\nTapBounceContainer(\n    onTap: () {\n        showTopSnackBar(\n            Overlay.of(context),\n            CustomSnackBar.info(\n              message: \"Persistent SnackBar\",\n            ),\n            persistent: true,\n            onAnimationControllerInit: (controller) =\u003e\n              localAnimationController = controller,\n        );\n    },\n    child: buildButton(context, \"Show persistent SnackBar\"),\n),\nTapBounceContainer(\n    onTap: () =\u003e localAnimationController.reverse(),\n    child: buildButton(context, \"Dismiss\"),\n),\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanarsinc%2Ftop-snackbar-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanarsinc%2Ftop-snackbar-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanarsinc%2Ftop-snackbar-flutter/lists"}