Commit graph

50 commits

Author SHA1 Message Date
Tommy Chow
09edf1cb1d Fix emoji sizing, add common badge model 2022-01-12 09:29:31 -05:00
tommyxchow
2ca1221fb1 Restructure folders 2022-01-07 21:56:45 -05:00
Tommy Chow
58bb1d49d3 Add chat user message history & blocking 2022-01-05 07:23:19 -05:00
Tommy Chow
4bd803c9eb Add API requests for blocking & unblocking users 2022-01-03 05:41:10 -05:00
Tommy Chow
bee525bb7a Add categories to search section 2022-01-02 19:12:39 -05:00
Tommy Chow
02b4519d01 Add support for BTTV badges 2022-01-01 00:58:06 -05:00
Tommy Chow
5164ab7311 Add support for 7TV badges 2021-12-31 23:38:50 -05:00
Tommy Chow
e768a05c37 Migrate from BTTV's FFZ API to FFZ's official API 2021-12-31 20:34:12 -05:00
Tommy Chow
c86b0f8c8f Add support for FFZ dev, bot, and supporter badges 2021-12-30 23:00:03 -05:00
Tommy Chow
f5ba55f52d Update block list request to use pagination 2021-12-28 21:34:40 -05:00
Tommy Chow
0185b80454 Add API request and model for users in chat 2021-12-27 21:08:16 -05:00
tommyxchow
9f7529d2cc Add twitchSub & twitchUnlocked enum emote type 2021-12-22 17:50:42 -05:00
tommyxchow
d51b46933f Add Twitch API requests for emote sets & sub count 2021-12-22 00:27:24 -05:00
tommyxchow
b8e5a465bb Minor IRC refactor & cleanup 2021-12-16 00:06:28 -05:00
tommyxchow
796559b51b Fix settings not updating chat & refactor IRC 2021-12-15 23:54:06 -05:00
tommyxchow
8337a454fc Add experimental support for zero-width emotes 2021-12-15 01:49:25 -05:00
tommyxchow
b297412e84 Fix undefined unicode text & add disconnect notice 2021-12-13 23:41:14 -05:00
tommyxchow
522dc377a0 Update emotes API to use new common emote class 2021-12-12 16:04:17 -05:00
tommyxchow
0457d3e85e Add proper tooltips for badges 2021-12-11 17:09:15 -05:00
tommyxchow
a95c3eb7ae Add tooltips to emotes & badges, update API 2021-12-11 15:51:30 -05:00
tommyxchow
a671a54d0d Add API request for blocked users (#52) 2021-12-11 00:30:46 -05:00
tommyxchow
4b30cc90c8 Add hide banned messages option, tweaks
Tweaked app bar font size and made settings screen in chat fullscreen.
2021-12-08 02:14:15 -05:00
tommyxchow
e8d3804ae9 Tweak Twitch API & settings slider 2021-12-06 02:36:08 -05:00
tommyxchow
57c5d1f4a9 Twitch API tweaks & additions (#41)
- Added request for streams under a desired category
- Tweaked models
2021-11-26 01:14:47 -05:00
tommyxchow
a6688a992c Add stream request & viewercount on video overlay 2021-11-24 04:39:05 -05:00
tommyxchow
7dc5b114fb First iteration of persistent settings (#45) 2021-11-23 03:26:57 -05:00
tommyxchow
9875b6ed59 Implement handling of NOTICE command (#44) 2021-11-23 00:47:21 -05:00
tommyxchow
d7633281d2 Refactor & split stream list 2021-11-22 01:26:17 -05:00
tommyxchow
051b8678e5 Add top games request, tweak models (#40)
[skip ci]
2021-11-18 22:13:01 -05:00
tommyxchow
df864bc511 Add directives_ordering lint rule 2021-11-14 23:18:43 -05:00
tommyxchow
6b40f9e76f Add channel search request and object 2021-11-14 04:17:19 -05:00
tommyxchow
70ca29bd98 Remove google_fonts dependency & add Inter fonts
The Google fonts package was causing inconsistent weight of fonts and
would have to be re-declared every time the style needed to be used.
Now the Inter font files are bundled in and don't require an http
request to fetch them.
2021-11-14 02:10:32 -05:00
tommyxchow
881eebbb17 Tweak fonts for consistent rendering 2021-11-12 06:01:06 -05:00
tommyxchow
49b3385c12 Refactor & rename relevant channels to streams 2021-11-12 00:04:39 -05:00
tommyxchow
b370683739 Add Channel object for search & API request 2021-11-11 22:51:31 -05:00
tommyxchow
d4c3714561 Fix Unicode rendering in certain chat messages
On iOS, certain chat messages would have a trailing invalid/unknown
"emoji" (question mark inside a square).  This is caused by certain
Twitch IRC clients appending the INVALID Unicode character (U+E5000) to
circumvent restrictions on sending identical messages in quick
succession.

To resolve this, I added a check on the last word of the message. If
the character exists, the word will be remove. Since the word will only
contain a space and the character, it can be safely removed.

This commit also contains an additional "optimization" through
StringBuffers. By using the buffer there will be less TextSpan widgets
which theoretically should improve performance.
2021-11-02 03:44:05 -04:00
tommyxchow
5276f4bd76 Fix assetToUrl type in generateSpan 2021-10-26 01:58:47 -04:00
tommyxchow
05df4e8d2f Minor comment additions and fixes
Removed the redundant request for Twitch global and channel emotes in getAssets().

Since these emotes will be processed anyways when generating the span, there's no point in wasting bandwidth to fetch and store them.
2021-10-26 01:48:46 -04:00
tommyxchow
1afc979139 Add command enum, refactor chat store
- Added enum for IRC tag command for slightly better comparisons
- Moved span portion of renderMessage to its own function in irc_api.dart
- Moved message remove and end scroll to seperate function action
- Fixed emote tags applying to all users
2021-10-24 03:53:08 -04:00
tommyxchow
eb3f0bc082 Implement rendering of USERNOTICE messages 2021-10-23 02:28:20 -04:00
tommyxchow
bb74b7bd6e Refactor IRC API
- Moved parse method to factory constructor in IRCMessage for better readability
- Renamed irc_message.dart to irc.dart to include other irc-related models
- Added ROOMSTATE model
- Moved addMessage functionality to chat store
2021-10-22 02:34:23 -04:00
tommyxchow
58041d4126 Refactor IRC functions & tweak padding 2021-10-20 05:12:15 -04:00
tommyxchow
a897f1218e Add opacity to CLEARCHAT and CLEARMSG, fixes
- Increase chat message limit to 200
- Fix auto scroll post frame callback
2021-10-18 02:43:47 -04:00
tommyxchow
639a06dbe0 Remove USERSTATEs from IRC API
The GLOBALUSERSTATE and USERSTATE are not related to any message list modifications. Instead, they can be handled with one line in the switch statement in chat store.

The USERSTATE method was renamed to addMessage for better readability.
2021-10-17 17:49:11 -04:00
tommyxchow
9eca5189db Renames, implement CLEARCHAT and CLEARMSG 2021-10-17 02:14:15 -04:00
tommyxchow
7673a2c8a0 Add IRC API 2021-10-16 18:25:32 -04:00
Tommy Chow
ae9437da9b Tweak Twitch api error handling 2021-10-10 21:48:31 -04:00
Tommy Chow
0305b12521 Add alert when searching for invalid channel 2021-10-10 01:43:24 -04:00
Tommy Chow
6f3259ff45 Add ability to search a specific channel
Closes #28 and closes #29
2021-10-10 00:10:58 -04:00
Tommy Chow
8c2038f92d Refactor requests to their own dedicated API files 2021-10-03 18:08:51 -04:00