groovinchip
b8de269c1f
chore: updated CHANGELOG.md
2021-08-06 12:16:22 -04:00
groovinchip
91c0a7031a
feat(ui): added backgroundColor property to the various header widgets
...
Also updated CHANGELOG.md
2021-08-06 11:39:51 -04:00
groovinchip
1b9c718ed8
chore: address PR feedback
2021-08-04 15:34:48 -04:00
groovinchip
d74576a197
chore: add UserAvatar placeholder builder to stream_chat_theme.dart and user_avatar.dart
2021-08-04 14:35:58 -04:00
groovinchip
8de0eab7cb
chore: update CHANGELOG.md
2021-08-04 12:24:56 -04:00
groovinchip
8a4632e6e2
chore: address PR feedback
2021-08-04 12:03:37 -04:00
groovinchip
f0cf4fd6db
chore: use ChannelPreviewTheme.of(context) in channel_bottom_sheet.dart
2021-08-04 11:40:10 -04:00
groovinchip
70c77e70e5
chore: use ChannelHeaderTheme.of(context) in thread_header.dart
2021-08-04 11:36:58 -04:00
groovinchip
55cb5ead04
chore: use ChannelPreviewTheme.of(context) in message_search_item.dart
2021-08-04 11:34:30 -04:00
groovinchip
6e6ce8c7f3
test: fix mid-lerp test in channel_header_theme_test.dart
2021-08-02 14:44:36 -04:00
groovinchip
e5270e60d0
chore: merge latest dev
2021-08-02 13:15:28 -04:00
groovinchip
d5f38fa545
test: fixed failing test in channel_preview_theme_test.dart
2021-08-02 12:58:31 -04:00
groovinchip
26b2bf3f18
test: add test for ChannelListHeaderTheme
2021-08-02 12:02:18 -04:00
groovinchip
34476db6f4
chore: update ChannelListHeaderTheme
2021-08-02 11:52:45 -04:00
groovinchip
51e0eb9a13
chore: use ChannelPreviewTheme.of(context) rather than StreamChatTheme.of(context).channelPreviewTheme
2021-08-02 11:02:55 -04:00
groovinchip
c3d2896071
test: add tests for MessageTheme
2021-08-02 10:56:06 -04:00
groovinchip
628ef401d4
chore: update message_theme.dart
...
Includes Diagnosticable, more descriptive field names, lerp, ==, and hashCode
2021-08-02 10:47:38 -04:00
groovinchip
5e1eb7a320
test: add tests for ChannelPreviewTheme
2021-08-02 09:53:39 -04:00
groovinchip
a06e6075d7
chore: add ChannelPreviewTheme inherited theme and documentation
2021-08-02 09:38:15 -04:00
groovinchip
d8ca465b91
chore: add lerp, == and hashCode to ChannelPreviewTheme
2021-08-02 09:24:17 -04:00
groovinchip
37f4ee720e
chore: rename ChannelPreviewTheme to ChannelPreviewThemeData
2021-07-30 13:52:07 -04:00
groovinchip
c5d53de53c
chore: rename ChannelPreviewTheme.lastMessageAt to .lastMessageAtStyle
2021-07-30 13:50:42 -04:00
groovinchip
008dc0b1df
chore: add diagnosticable properties to channel_preview_theme.dart
2021-07-30 13:48:49 -04:00
groovinchip
f55110c458
fix: instances where new naming wasn't applied
2021-07-30 13:45:58 -04:00
groovinchip
019bd5d5da
chore: run dartfmt on changed files
2021-07-30 13:44:53 -04:00
groovinchip
6765854132
chore: rename ChannelPreviewTheme.title and .subtitle to .titleStyle and .subtitleStyle
2021-07-30 13:43:22 -04:00
groovinchip
c7d399704e
test: Merging two MessageInputThemeData results in the latter
2021-07-30 11:35:32 -04:00
groovinchip
5b99507db3
test: lerp halfway from light to dark
2021-07-30 11:34:46 -04:00
groovinchip
cc89edc244
test: fix light to dark test, add dark to light test
2021-07-30 10:30:33 -04:00
groovinchip
822b0ad725
test: start testing MessageInputTheme
2021-07-29 13:59:02 -04:00
groovinchip
1aa6298799
chore: use MessageInputTheme in message_input.dart
2021-07-29 11:07:17 -04:00
groovinchip
700ce9a775
chore: add a MessageInputTheme inherited theme
2021-07-29 11:02:29 -04:00
groovinchip
8fb45ec4d1
chore: rename MessageInputTheme to MessageInputThemeData
2021-07-29 10:50:03 -04:00
groovinchip
5afc274a6d
chore: add lerp, hashcode, ==, and diagnosticable to message_input_theme.dart
2021-07-29 10:48:52 -04:00
groovinchip
15defc4caa
chore: remove unnecessary ChannelTheme class
2021-07-29 09:23:50 -04:00
groovinchip
cede1b572a
chore: run dartfmt on /theme
2021-07-28 14:49:12 -04:00
groovinchip
de4e1e29e2
chore: remove AvatarTheme
2021-07-28 12:49:14 -04:00
groovinchip
82fa916090
test: move theme test files into their own folder within test/src
2021-07-27 15:30:34 -04:00
groovinchip
362d55b89e
test: add tests for ChannelHeaderThemeData
2021-07-27 13:48:32 -04:00
groovinchip
3a072fc836
chore: more upgrades for channel_header_theme.dart
...
* Renamed:
* title -> titleStyle
* subtitle -> subtitleStyle
* Added
* ==
* hashcode
* debugFillProperties
* lerp
2021-07-27 13:33:58 -04:00
groovinchip
8bf45f8501
fix: remove duplicate exports in stream_chat_flutter.dart
2021-07-27 13:21:20 -04:00
groovinchip
1fa8c5264a
chore: upgrade ChannelHeaderTheme
2021-07-27 13:12:51 -04:00
groovinchip
66ea5557e8
test: create tests for AvatarThemeData
2021-07-27 10:47:01 -04:00
groovinchip
f90fd713c2
chore: upgrade AvatarTheme
...
* `AvatarTheme` is now an `InheritedTheme` and has a corresponding `AvatarThemeData` class
2021-07-27 10:32:49 -04:00
groovinchip
bcabbf12db
chore: refactor most theme related classes into a /theme folder
...
stream_chat_theme.dart remains in /src because I feel it will cause too much of a mess if moved.
2021-07-26 14:46:14 -04:00
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