2932 Commits
Author SHA1 Message Date
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
Salvatore Giordano 9813f4084a update persistence version 2021-07-16 17:29:27 +02:00
Salvatore Giordano db537811cc Merge branch 'develop' into release/2.0.0 2021-07-16 17:28:31 +02:00
Salvatore GiordanoandGitHub 48399a0f1b Merge pull request #529 from GetStream/docusaurus
docs: docusaurus docs
2021-07-16 17:28:01 +02:00
Salvatore Giordano ca2c459e77 Merge branch 'develop' into release/2.0.0 2021-07-16 17:19:44 +02:00
Salvatore Giordanoandxsahil03x 5c12521a69 fix analyzer 2021-07-16 20:44:21 +05:30
Sahil Kumar 9a2ec7ca84 fix: sync events only in case persistence is enabled
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 18:32:38 +05:30
Salvatore Giordano e0153b4852 fix analyzer 2021-07-16 13:15:50 +02:00
Salvatore Giordano 0e9ec8600a update version.dart 2021-07-16 13:11:53 +02:00
Salvatore Giordano e0ede7abfe Merge branch 'develop' into release/2.0.0 2021-07-16 12:52:43 +02:00
Sahil KumarandGitHub 633bcb750d Merge pull request #548 from GetStream/hotfix/backgroundDisconnection
fix: use inactive as a foreground state
2021-07-16 16:16:29 +05:30
Salvatore Giordano 1d79f9aac1 update stream_chat_flutter changelog 2021-07-16 12:44:46 +02:00
Salvatore GiordanoandGitHub 3a2c50158a Merge branch 'master' into release/2.0.0 2021-07-16 12:32:27 +02:00
Salvatore Giordano 16c31231bc update stream_chat_flutter changelog 2021-07-16 12:27:54 +02:00
Salvatore Giordano 26dea38e33 update stream_chat_flutter_core changelog 2021-07-16 12:27:48 +02:00
Salvatore Giordano 0a491eed7d update stream_chat_persistence changelog 2021-07-16 12:27:39 +02:00
Salvatore Giordano 1a55ae57e4 update stream_chat changelog 2021-07-16 12:27:31 +02:00
Salvatore Giordano 35b969994e update pubspecs 2021-07-16 12:27:25 +02:00
Sahil Kumar 9a3d094282 chore: fix analyzer warnings
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 14:51:32 +05:30
Sahil Kumar cb0f47e02c fix: tutorial_part_3.dart
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 14:48:07 +05:30
xsahil03x ec85fb962d Merge remote-tracking branch 'origin/develop' into fix/channel-image
# Conflicts:
#	packages/stream_chat_flutter/test/src/channel_image_test.dart
2021-07-16 14:46:29 +05:30
Sahil Kumar 4533828fe8 chore: fix analyzer issues
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 14:42:22 +05:30
Reuben TurnerandGitHub 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
Sahil Kumar 8dcd5cde64 refactor!: rename ChannelImage -> ChannelAvatar, GroupImage -> GroupAvatar
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 13:59:28 +05:30
Sahil Kumar d2402ba3d0 fix: tests
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 13:35:51 +05:30
Sahil Kumar c2563c9d5f chore: fix merge conflicts
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 12:19:50 +05:30
xsahil03x 03f71595ac Merge remote-tracking branch 'origin/develop' into fix/channel-image
# Conflicts:
#	packages/stream_chat_flutter/lib/src/stream_chat_theme.dart
2021-07-16 12:19:00 +05:30
Reuben TurnerandGitHub 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
Sahil Kumar 6f8dbf7e00 ChannelPreview: Minor refactoring
Signed-off-by: xsahil03x <[email protected]>
2021-07-15 19:02:15 +05:30
Sahil Kumar 769258bb53 [UI-KIT] Fix channel_image.dart, remove defaultChannelPreview from theme
Signed-off-by: xsahil03x <[email protected]>
2021-07-15 19:00:03 +05:30
Salvatore Giordano e99c66be99 add tests 2021-07-15 13:15:22 +02:00
Salvatore Giordano fb10824b14 use inactive as a foreground state 2021-07-15 12:07:48 +02:00
Salvatore GiordanoandGitHub 6399e8f2db Merge pull request #545 from GetStream/giphy-fix
fix: Giphy cancel error
2021-07-14 17:51:14 +02:00
Salvatore GiordanoandGitHub 00eb7b5838 Merge pull request #540 from GetStream/feat/channel-pagination-error-retry
fix: channel pagination error retry
2021-07-14 13:48:16 +02:00
Deven Joshi b93ac23fa9 fix: Giphy cancel error 2021-07-14 17:09:26 +05:30
Sahil Kumar 80c3f9d587 [UI-KIT] Add ErrorListener in message_input.dart [https://github.com/GetStream/stream-chat-flutter/issues/489]
Signed-off-by: xsahil03x <[email protected]>
2021-07-13 19:30:21 +05:30
Sahil Kumar 201a510bf0 fix ChannelListView not retrying error on connection recovered [#504](https://github.com/GetStream/stream-chat-flutter/issues/504)
Signed-off-by: xsahil03x <[email protected]>
2021-07-13 16:51:22 +05:30
Sahil Kumar a48389a814 add remaining translation strings
Signed-off-by: xsahil03x <[email protected]>
2021-07-12 15:01:36 +05:30
Salvatore Giordano 7b1a85c40c minor fixes 2021-07-09 15:13:48 +02:00
Salvatore Giordano dc005ed86d fix nextMessage index 2021-07-09 10:37:16 +02:00
Sahil Kumar ffb46ecdca minor changes 2021-07-08 16:59:57 +05:30
Sahil Kumar 2691243102 Remove json translations approach, add example for adding language
Signed-off-by: Sahil Kumar <[email protected]>
2021-07-08 16:43:24 +05:30
Salvatore GiordanoandGitHub 6ff2dc7089 Merge pull request #520 from GetStream/feat/connectionLessClient
feat!: connection less client [CDS-335]
2021-07-08 10:38:07 +02:00
Salvatore Giordano 2970763782 minor fix 2021-07-08 10:14:37 +02:00
Salvatore GiordanoandGitHub bcccef7328 Merge pull request #517 from GetStream/fix/messageListView
fix!: remove proxy properties from `MessageListView` [CDS-341]
2021-07-08 09:42:07 +02:00
Salvatore Giordano 404b9ff89e add color name details 2021-07-08 09:36:10 +02:00
Salvatore Giordano 184a00b195 update changelogs and pubspecs 2021-07-07 17:39:55 +02:00