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
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