{"id":32304933,"url":"https://github.com/deb-sahu/top-snackbar","last_synced_at":"2026-04-13T20:32:39.253Z","repository":{"id":232849271,"uuid":"785318655","full_name":"deb-sahu/top-snackbar","owner":"deb-sahu","description":"A lightweight, highly customizable and easy-to-use flutter package tailored for top snackbar notifications.","archived":false,"fork":false,"pushed_at":"2024-05-01T00:58:06.000Z","size":303,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-21T16:43:53.786Z","etag":null,"topics":["android-flutter","dart","dart-3","flutter","ios-flutter","snackbar"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/top_snackbar","language":"C++","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/deb-sahu.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":"2024-04-11T16:38:51.000Z","updated_at":"2024-12-18T12:12:01.000Z","dependencies_parsed_at":"2024-04-11T22:01:24.732Z","dependency_job_id":"a8aba283-21d0-40dd-a9e1-68de7fa11058","html_url":"https://github.com/deb-sahu/top-snackbar","commit_stats":null,"previous_names":["deb-sahu/top-snackbar"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/deb-sahu/top-snackbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deb-sahu%2Ftop-snackbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deb-sahu%2Ftop-snackbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deb-sahu%2Ftop-snackbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deb-sahu%2Ftop-snackbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deb-sahu","download_url":"https://codeload.github.com/deb-sahu/top-snackbar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deb-sahu%2Ftop-snackbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["android-flutter","dart","dart-3","flutter","ios-flutter","snackbar"],"created_at":"2025-10-23T06:41:44.306Z","updated_at":"2026-04-13T20:32:39.238Z","avatar_url":"https://github.com/deb-sahu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Features\n\n- Customizable styles including text, background color, leading icons and more\n- Responsive layout design, uses Media Queries to adapt on various screen sizes\n- Pre-defined methods for various message types with default styles and icons\n- Being an overlay, it doesn't disturb the widget tree or get affected by context change\n\n## Demo\n\n\u003cimg src=\"https://github.com/deb-sahu/top-snackbar/assets/117360930/89ada1ca-4f5d-4a54-9139-84c0d752f831\" width=\"250\"\u003e\n\n## Usage\n\n### Installation\n\nAdd `top_snackbar` to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  top_snackbar: ^0.0.6 # Use the latest version\n```\n\n### Import\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:top_snackbar/top_snackbar.dart';\n```\n\n### Custom Top Snackbar Widget\n\nTo show a custom top snackbar message, use the `CustomTopSnackbar.show` method:\n\n```dart\nCustomTopSnackbar.show(\n  context,\n  'Your message here',\n  // Customize more additional properties as required (optional)\n  leadingIcon: Icons.copy,\n  backgroundColor: Colors.blue,\n);\n```\n\n### Pre-defined Message Types\n\nThe library provides pre-defined methods for different message types with default styles and icons:\n\n- **Info**: Display an informational message.\n```dart\nCustomTopSnackbar.showInfo(context, 'Info message');\n```\n\n- **Success**: Display a success message.\n```dart\nCustomTopSnackbar.showSuccess(context, 'Success message');\n```\n\n- **Error**: Display an error message.\n```dart\nCustomTopSnackbar.showError(context, 'Error message');\n```\n\n- **Warning**: Display a warning message.\n```dart\nCustomTopSnackbar.showWarning(context, 'Warning message');\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeb-sahu%2Ftop-snackbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeb-sahu%2Ftop-snackbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeb-sahu%2Ftop-snackbar/lists"}