{"id":32298064,"url":"https://github.com/slimpotatoboy/slack_logger","last_synced_at":"2025-10-23T04:51:53.526Z","repository":{"id":62794440,"uuid":"562515857","full_name":"slimpotatoboy/slack_logger","owner":"slimpotatoboy","description":"A simple flutter package to send message to slack channel via slack webhook","archived":false,"fork":false,"pushed_at":"2024-09-26T19:51:51.000Z","size":42,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T04:51:48.503Z","etag":null,"topics":["dart","flutter","slack"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/slack_logger","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/slimpotatoboy.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-11-06T15:48:10.000Z","updated_at":"2025-04-15T05:05:20.000Z","dependencies_parsed_at":"2023-01-22T16:30:56.936Z","dependency_job_id":"eaa7e457-cf2d-4a26-ae89-52bdbb91d9be","html_url":"https://github.com/slimpotatoboy/slack_logger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/slimpotatoboy/slack_logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimpotatoboy%2Fslack_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimpotatoboy%2Fslack_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimpotatoboy%2Fslack_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimpotatoboy%2Fslack_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slimpotatoboy","download_url":"https://codeload.github.com/slimpotatoboy/slack_logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slimpotatoboy%2Fslack_logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280563530,"owners_count":26351731,"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-10-23T02:00:06.710Z","response_time":142,"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":["dart","flutter","slack"],"created_at":"2025-10-23T04:51:46.462Z","updated_at":"2025-10-23T04:51:53.519Z","avatar_url":"https://github.com/slimpotatoboy.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Logger 🚀\n\n[![GitHub stars](https://img.shields.io/github/stars/slimpotatoboy/slack_logger.svg?style=social)](https://github.com/slimpotatoboy/slack_logger)\n\n[![Follow Twitter](https://img.shields.io/twitter/follow/slimpotatoboy?style=social)](https://twitter.com/intent/follow?screen_name=slimpotatoboy)\n\nA simple Flutter package to send message to slack channel via slack webhook\n\n## Usage\n\nTo use this plugin, add `slack_logger` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/platform-integration/platform-channels) 🔗.\n\n### Steps before using this package\n\n- Add Apps to 🔗 https://api.slack.com/apps/.\n\n- Go to Incoming Webhook Link and Enable it.\n\n- Create your slack channel.\n\n- Create new webhook and link slack channel.\n\n### You are good to go now 👍\n\n### Initialize [SlackLogger]\n\n```dart\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n\n    SlackLogger(webhookUrl: \"[Add Your Web Hook Url]\");\n\n    return MaterialApp(\n      ...\n    );\n  }\n}\n```\n\n### Create Instance of SlackLogger\n```dart\nfinal slack = SlackLogger.instance;\n```\n\n#### Send Message:\n\n```dart\n...\n\nslack.send(\"This is a error log to my channel\");\n\n...\n```\n\n#### Send Image:\n\n```dart\n...\n\nslack.sendImage(\n  imageUrl: \"[image url]\",\n  imageAltText: \"[alt text for image]\",\n);\n\n...\n```\n\n#### Send Image With Text Block:\n\n```dart\n...\n\nslack.sendImageWithText(\n  text: \"[text]\",\n  imageUrl: \"[image url]\",\n  imageAltText: \"[alt text for image]\"\n);\n\n...\n```\n\n#### Send Text (Markdown) with Button:\n\n```dart\n...\n\nslack.sendTextWithButton(\n  markdownMessage: \"[markdown message]\",\n  buttonLabel: \"[button label]\",\n  url: \"[button link]\"\n);\n\n...\n```\n\n#### Send Text As Attachments:\n\n```dart\n...\n\nslack.sendTextAsAttachment(\n  message:\"[Your Message]\",\n  color: \"[color]\"\n);\n\n...\n```\n\n#### Send Markdowns As Attachments:\n\n```dart\n...\n\nslack.sendMarkdownAsAttachment(\n  markdownMessageList: List\u003cString\u003e [markdownMessageList],\n  color: \"[color]\"\n);\n\n...\n```\n\n## 🚀 Contributors\n\n- [Dipen Maharjan](https://dipenmaharjan.com.np/)\n- [Ashim Upadhaya](https://github.com/ayyshim)\n\n---\n\n**Any new Contributors are welcomed.**\n\nFeel Free to request any missing features or report issues [here](https://github.com/slimpotatoboy/slack_logger/issues) 🔗.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimpotatoboy%2Fslack_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslimpotatoboy%2Fslack_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimpotatoboy%2Fslack_logger/lists"}