groovinchip
9fb60e93c1
progress on slow mode
2021-07-26 11:42:24 -04:00
groovinchip
848aa550f7
chore: add doc for cooldown in channel_model.dart
2021-07-22 13:47:58 -04:00
groovinchip
c2b6ea13d8
fix: use the right stream for cooldown stream
2021-07-22 13:46:04 -04:00
groovinchip
4f768024c6
chore: Add language to OwnUser
2021-07-22 11:08:10 -04:00
groovinchip
da3cf4d6de
chore: start adding cooldown and cooldown stream to channel.dart
2021-07-22 10:20:31 -04:00
groovinchip
61d7661297
chore: add cooldown to channel_model.dart and test it
2021-07-22 10:11:34 -04:00
groovinchip
f109a47909
fix: JsonKey for User.language
2021-07-21 12:28:04 -04:00
groovinchip
25aa6f2a90
chore: update CHANGELOG.md
2021-07-20 15:23:25 -04:00
groovinchip
247efb4e8f
chore: add missing JsonKey to Message.i18n
2021-07-20 15:22:15 -04:00
groovinchip
0210e2d49f
chore: fill out message.i18n docs more
2021-07-20 15:19:37 -04:00
groovinchip
0943980b51
test: add 'i18n' field test to message_test.dart
2021-07-20 15:15:09 -04:00
groovinchip
c6dd3b0cd7
test: add 'language' field test to user_test.dart
2021-07-20 15:13:58 -04:00
groovinchip
62b058e675
chore: add 'language' field to user.dart
2021-07-20 15:07:30 -04:00
groovinchip
c3312c2da2
chore: remove the TranslatedMessage class and add the i18n field to the Message class
...
Tests have been updated to reflect the removal of this class
2021-07-20 14:35:15 -04:00
1711507b42
Update packages/stream_chat_flutter/CHANGELOG.md
...
Co-authored-by: Salvatore Giordano <[email protected] >
2021-07-20 09:15:19 -04:00
groovinchip
1b3c2c83a5
Merge remote-tracking branch 'origin/cds-323' into cds-323
2021-07-20 09:08:24 -04:00
groovinchip
b977b46477
chore: update CHANGELOG.md per PR review
2021-07-20 09:08:15 -04:00
groovinchip
a1f0afe83f
fix: curly brace lint
2021-07-19 14:54:25 -04:00
groovinchip
7fc288b397
remove example app test folder that got generated with the macos project
2021-07-19 14:48:54 -04:00
groovinchip
ddf5d45c4a
fix: dartfmt on a couple of files
2021-07-19 14:44:04 -04:00
groovinchip
10d2480a00
test: add tests for MessageSearchListViewThemeData
2021-07-19 14:41:39 -04:00
groovinchip
e25db48a07
chore: set MessageSeachListView bg color via theme and stop setting scaffold bg color
...
New classes:
* MessageSearchListViewTheme
* MessageSearchListViewThemeData
2021-07-19 14:20:22 -04:00
groovinchip
674fc83e62
test: add tests for UserListViewThemeData
2021-07-19 13:39:17 -04:00
groovinchip
d6ef2d5a3f
fix typo in test name
2021-07-19 13:38:43 -04:00
groovinchip
4d3e2bce9a
chore: theme user_list_view.dart background color from theme
2021-07-19 12:19:52 -04:00
groovinchip
423581c9d1
fix: theme channel_list_view.dart background color in the proper place
2021-07-19 12:16:48 -04:00
groovinchip
f904b3ed82
remove unused import
2021-07-19 09:05:50 -04:00
groovinchip
f7b61706cb
test: add tests for ChannelListViewThemeData
2021-07-18 12:47:02 -04:00
groovinchip
6bc70ba40a
run dartfmt on message_list_view_theme_test.dart
2021-07-18 12:45:40 -04:00
groovinchip
eb6d0ad5b0
fix: make ChannelListViewThemeData constructor const
2021-07-18 12:35:14 -04:00
groovinchip
c803b133a0
chore: allow ChannelListView background color to be themed via StreamChatThemeData
...
This commit adds the ChannelListViewTheme and ChannelListViewThemeData classes, and updates ChannelListView to set its background color accordingly
2021-07-18 12:31:21 -04:00
groovinchip
9fbbe976ba
feat: add macos support to stream_chat_flutter example app
2021-07-16 19:41:32 -04:00
groovinchip
d73b201915
Merge branch 'develop' into cds-323
2021-07-16 19:27:54 -04:00
groovinchip
c427b1201b
test: add tests for MessageListViewThemeData
2021-07-16 19:24:08 -04:00
groovinchip
45d2f5c6b3
fix MessageListViewThemeData lerp
2021-07-16 15:08:26 -04:00
groovinchip
be804b211c
un-require backgroundColor for MessageListViewThemeData class per conventions
2021-07-16 15:03:14 -04:00
groovinchip
0eb350b756
test: remove a duplicated test in gallery_header_theme_test.dart
2021-07-16 15:00:12 -04:00
groovinchip
68db4bfee4
chore: Allow MessageListView background color to be customized via theme
...
This commit adds the MessageListViewTheme and MessageListViewTheme data classes. The customization is enabled in message_list_view.dart via the addition of a ColoredBox widget that looks up the widget tree for the background color set by MessageListViewThemeData
2021-07-16 12:15:04 -04:00
Reuben Turner and GitHub
b306978da6
chore: apply linter to the various example and test directories ( #550 )
...
* chore: remove examples and tests from analysis exclusion
* chore: apply linter fixes to stream_chat_flutter_core/example/main.dart
* chore: apply linter fixes to stream_chat_flutter/example/main.dart
* chore: apply linter fixes to stream_chat_persistence/example/main.dart
* chore: apply linter fixes to stream_chat/example/main.dart
* chore: apply linter fixes to stream_chat_flutter/example/split_view.dart
* chore: renamte tutorial files per linter
* chore: apply linter fixes to tutorial_part_1.dart
* chore: apply linter fixes to tutorial_part_2.dart
* chore: apply linter fixes to tutorial_part_3.dart
* chore: apply linter fixes to tutorial_part_4.dart
* chore: apply linter fixes to tutorial_part_5.dart
* chore: make a widget const in tutorial_part_5.dart
* chore: apply linter fixes to tutorial_part_6.dart
* chore: sort and update dependencies in stream_chat_persistence/example/pubspec.yaml
* chore: sort and update dependencies in stream_chat_flutter_core/example/pubspec.yaml
* chore: sort and update dependencies in stream_chat_flutter/example/pubspec.yaml
* chore: sort dependencies in stream_chat_flutter/example/pubspec.yaml
* chore: apply linter fixes to channel_test.dart
* chore: apply linter fixes to client_test.dart
* chore: apply linter fixes to client_test.dart, stream_http_client_test.dart, and token_manager_test.dart
* chore: apply linter fixes to filter_test.dart
* chore: apply linter fixes to reaction_test.dart
* chore: apply linter fixes to chat_persistence_client_test.dart
* chore: apply linter fixes to channel_image_test.dart
* chore: apply linter fixes to deleted_message_test.dart
* chore: apply linter fixes to full_screen_media_test.dart
* chore: apply linter fixes to gallery_footer_theme_test.dart
* chore: apply linter fixes to gallery_header_theme_test.dart
* chore: apply linter fixes to message_text_test.dart
* chore: apply linter fixes to reaction_bubble_test.dart
* chore: apply linter fixes to system_message_test.dart
* chore: apply linter fixes to typing_indicator_test.dart
* chore: apply linter fixes to channel_list_core_test.dart
* chore: apply linter fixes to channels_bloc_test.dart
* chore: apply linter fixes to lazy_load_scroll_view_test.dart
* chore: apply linter fixes to channel_matcher.dart
* chore: apply linter fixes to message_matcher.dart
* chore: apply linter fixes to users_matcher.dart
* chore: apply linter fixes to message_list_core_test.dart
* chore: apply linter fixes to message_search_bloc_test.dart
* chore: apply linter fixes to message_search_list_core_test.dart
* chore: apply linter fixes to stream_channel_test.dart
* chore: apply linter fixes to stream_chat_core_test.dart
* chore: apply linter fixes to user_list_core_test.dart
* chore: apply linter fixes to channel_query_dao_test.dart, message_mapper_test.dart, user_mapper_test.dart, and users_bloc_test.dart
* chore: apply some missed dartfmt
* test: regenerate failinggolden test
2021-07-16 10:49:51 +02:00
Reuben Turner and GitHub
485e077596
feat: add GalleryHeader/GalleryFooter theme classes ( #546 )
...
* chore: Add ImageHeaderTheme and ImageHeaderThemeData to stream_chat_theme.dart
This commit adds the following classes to `stream_chat_theme.dart`:
1. `ImageHeaderTheme`, an `InheritedTheme` widget that can wrap other widgets and provide that sub-tree with an `ImageHeaderThemeData`
2. `ImageHeaderThemeData`, a class that allows for the customization of `ImageHeader` widgets
* Make ImageHeaderThemeData constructor const
* test: initial ImageHeaderThemeData tests
Tests the copyWith, ==, and hashcode functions
* test: add tests for default ImageHeaderThemeData values
Tests the default values of ImageHeaderThemeData that gets built in a StreamChatThemeData against control values.
* Update test name and add comments describing control
* fix: use ImageHeaderTheme.of(context) instead of StreamChatTheme.of(context)
This ensures that ImageHeader will always look for the closest ImageHeaderThemeData in the widget tree.
* test: add dark theme default values test
* run dartfmt on test file
* test: lerping between ImageHeaderThemeData
Added tests that lerp from one ImageHeaderThemeData to another (light to dark and dark to light)
* test: merging ImageHeaderThemeData
Added tests that merge light and dark ImageHeaderThemeData together (light + dark = dark, dark + light = light)
* test: add a half-lerp test
Added a test that lerps halway between light and dark ImageHeaderThemeData
* chore: Add ImageFooterTheme and ImageFooterThemeData to stream_chat_theme.dart
This commit adds the following classes to `stream_chat_theme.dart`:
1. `ImageFooterTheme`, an `InheritedTheme` widget that can wrap other widgets and provide that sub-tree with an `ImageFooterThemeData`
2. `ImageFooterThemeData`, a class that allows for the customization of `ImageFooter` widget
* chore: apply ImageFooterThemeData to image_footer.dart
* fix: make ImageFooterThemeData constructor const
* test: add tests for ImageFooterThemeData
* add a missing trailing comma
* chore: rename ImageHeader & ImageFooter to GalleryHeader and GalleryFooter
The respective theme classes and tests have also been renamed
* Run dartfmt on test
* test: fix failing tests due to renaming
2021-07-15 15:44:12 +02:00