v1.0.7
slack_logger
슬랙 웹훅을 통해 슬랙 채널로 메시지를 보내는 간단한 플러터 패키지
26좋아요 17830일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
슬랙 웹훅을 통해 슬랙 채널로 메시지를 보내는 간단한 플러터 패키지
{"sdk":"flutter"}^1.1.0{"sdk":"flutter"}>=2.0.0 <5.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A simple Flutter package to send message to slack channel via slack webhook
To use this plugin, add slack_logger as a dependency in your pubspec.yaml file 🔗.
Add Apps to 🔗 https://api.slack.com/apps/.
Go to Incoming Webhook Link and Enable it.
Create your slack channel.
Create new webhook and link slack channel.
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
SlackLogger(webhookUrl: "[Add Your Web Hook Url]");
return MaterialApp(
...
);
}
}
final slack = SlackLogger.instance;
...
slack.send("This is a error log to my channel");
...
...
slack.sendImage(
imageUrl: "[image url]",
imageAltText: "[alt text for image]",
);
...
...
slack.sendImageWithText(
text: "[text]",
imageUrl: "[image url]",
imageAltText: "[alt text for image]"
);
...
...
slack.sendTextWithButton(
markdownMessage: "[markdown message]",
buttonLabel: "[button label]",
url: "[button link]"
);
...
...
slack.sendTextAsAttachment(
message:"[Your Message]",
color: "[color]"
);
...
...
slack.sendMarkdownAsAttachment(
markdownMessageList: List<String> [markdownMessageList],
color: "[color]"
);
...
Any new Contributors are welcomed.
Feel Free to request any missing features or report issues here 🔗.