-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: chat-mode via dialog * feat: use overlay * chore: resolve warning * fix: logic fix and allows startswith filtering * chore: code tidy * chore: bump sdk to at least 2.17.0 for enhance enum feature * chore: use enum instead of class
- Loading branch information
Showing
3 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
enum ChatMode { | ||
followers( | ||
title: "/followers", | ||
subtitle: | ||
"Restrict the chat to followers-only mode; optionally, specify a time duration (e.g., 30 minutes, 1 week)"), | ||
followersoff(title: "/followersoff", subtitle: "Disable followers-only mode"), | ||
subscribers(title: "/subscribers", subtitle: "Restrict Chat to subscribers"), | ||
subscribersoff( | ||
title: "/subscribersoff", subtitle: "Turn off subscribers-only mode"), | ||
uniquechat( | ||
title: "/uniquechat", | ||
subtitle: "Prevent users from sending duplicate messages in Chat"), | ||
uniquechatoff(title: "/uniquechatoff", subtitle: "Turn off unique-chat mode"), | ||
emoteonly( | ||
title: "/emoteonly", | ||
subtitle: "Users can only send emotes in their messages"), | ||
emoteonlyoff(title: "/emoteonlyoff", subtitle: "Disable emotes only mode"), | ||
slow( | ||
title: "/slow", | ||
subtitle: "Limit the rate at which users can send messages"), | ||
slowoff(title: "/slowoff", subtitle: "Disable slow mode"); | ||
|
||
const ChatMode({ | ||
required this.title, | ||
required this.subtitle, | ||
}); | ||
|
||
final String title; | ||
final String subtitle; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters