{"id":36213454,"url":"https://github.com/javrosales/slack-dart","last_synced_at":"2026-02-20T20:37:24.616Z","repository":{"id":56839551,"uuid":"272003335","full_name":"javrosales/slack-dart","owner":"javrosales","description":"Dart wrapper for posting messages to Slack","archived":false,"fork":false,"pushed_at":"2026-01-05T17:47:32.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T22:53:12.818Z","etag":null,"topics":["dart","flutter","slack"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/slack_notifier","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/javrosales.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":"2020-06-13T12:21:35.000Z","updated_at":"2026-01-05T17:47:37.000Z","dependencies_parsed_at":"2023-12-14T16:48:04.899Z","dependency_job_id":null,"html_url":"https://github.com/javrosales/slack-dart","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"04a0470947fc230c41d0e4543a347ee585001c1d"},"previous_names":["javrosales/slack-dart"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/javrosales/slack-dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javrosales%2Fslack-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javrosales%2Fslack-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javrosales%2Fslack-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javrosales%2Fslack-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javrosales","download_url":"https://codeload.github.com/javrosales/slack-dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javrosales%2Fslack-dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29663476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","slack"],"created_at":"2026-01-11T04:08:10.221Z","updated_at":"2026-02-20T20:37:24.588Z","avatar_url":"https://github.com/javrosales.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slack_notifier\n\nDart wrapper for posting messages to Slack using Incoming Webhooks.\n\n[![Build Status](https://github.com/javrosales/slack-dart/actions/workflows/dart.yml/badge.svg)](https://github.com/javrosales/slack-dart/actions/workflows/dart.yml)\n[![Pub Version](https://img.shields.io/pub/v/slack_notifier)](https://pub.dev/packages/slack_notifier)\n[![Pub Monthly Downloads](https://img.shields.io/pub/dm/slack_notifier)](https://pub.dev/packages/slack_notifier/score)\n\n## Getting Started\n\nIncoming Webhooks are a simple way to post messages from apps into Slack. Creating an Incoming Webhook gives you a unique URL to which you send a JSON payload with the message text and some options. You can use all the usual [formatting](https://docs.slack.dev/messaging/formatting-message-text) and [layout blocks](https://docs.slack.dev/messaging#complex_layouts) with Incoming Webhooks to make the messages stand out.\n\nTo get the WEBHOOK_URL you need:\n\n1. Create a Slack app (if you don't have one already)\n2. Enable Incoming Webhooks\n3. Create an Incoming Webhook\n4. Use your Incoming Webhook URL to post a message\n\nRead more about webhooks [here](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks).\n\n## Usage\n\nThis method posts a message to a public channel, private channel, or direct message conversation.\n\n```dart\nfinal slack = SlackNotifier('WEBHOOK_URL');\nslack.send(\n  'Hello world',\n  channel: 'general',\n  iconEmoji: ':chart_with_upwards_trend:',\n  iconUrl: 'https://picsum.photos/48/48',\n  username: 'My Bot',\n  blocks: [SectionBlock(text: 'Hello world')],\n  attachments: [Attachment(pretext: 'pre-hello', text: 'text-world')],\n);\n```\n\nThe usage of the `text` field changes depending on whether you're using `blocks`. If you're using `blocks`, this is used as a fallback string to display in notifications. If you aren't, this is the main body text of the message. It can be formatted as plain text, or with `mrkdwn`.\n\n## Blocks\n\nBlocks are a series of components that can be combined to create visually rich and compellingly interactive messages. [Block Kit](https://docs.slack.dev/reference/block-kit) can make your app's communication clearer while also giving you consistent opportunity to interact with and assist users.\n\n| Name | Description |\n| --- | --- |\n| `ActionsBlock` | Holds multiple interactive elements. |\n| `ContextBlock` | Provides contextual info, which can include both images and text. |\n| `DividerBlock` | Visually separates pieces of info inside of a message. |\n| `FileBlock` | Displays info about remote files. |\n| `HeaderBlock` | Displays a larger-sized text. |\n| `ImageBlock` | Displays an image. |\n| `InputBlock` | Collects information from users via elements. |\n| `RichTextBlock` | Displays formatted, structured representation of text. |\n| `SectionBlock` | Displays text, possibly alongside elements. |\n| `VideoBlock` | Displays an embedded video player. |\n\nIndividual blocks can be stacked together to create complex visual layouts.\n\n```dart\nvar blocks = [\n  HeaderBlock(text: 'Onboarding'),\n  SectionBlock(text: 'Example message for engaging new users.'),\n  DividerBlock(),\n  SectionBlock(text: \"Hey there :wave: I'm *TaskBot*. I'm here to help you create and manage tasks in Slack.\"),\n  ImageBlock(\n    imageUrl: 'https://api.slack.com/img/blocks/bkb_template_images/onboardingComplex.jpg',\n    altText: 'image1',\n    title: 'image1',\n  ),\n];\nslack.send('Onboarding', channel: 'general', blocks: blocks);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavrosales%2Fslack-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavrosales%2Fslack-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavrosales%2Fslack-dart/lists"}