Commit Graph
454 Commits
Author SHA1 Message Date
Salvatore Giordano 526450d4de use custom golden comparator 2021-07-22 14:48:42 +02:00
Salvatore Giordano d11e0f61ab chore(ui): update changelog 2021-07-22 08:59:52 +02:00
Salvatore Giordano 2a66fd88d0 fix nits 2021-07-21 12:32:01 +02:00
Salvatore Giordano 1db70a6eae add null check to message search list view 2021-07-21 12:24:28 +02:00
Salvatore Giordano f4457cb618 add null check to user list view 2021-07-21 12:23:09 +02:00
Salvatore Giordano 7d1259ce18 add null check to channel list view 2021-07-21 12:21:25 +02:00
Salvatore Giordano 9776fc5dfd add null check to message list view 2021-07-21 12:17:58 +02:00
Salvatore GiordanoandGitHub d4285c311f Merge pull request #564 from GetStream/hotfix/floatingDate
fix(ui): floating date not working with expanded
2021-07-21 11:10:52 +02:00
Salvatore Giordano 54ab8f2514 chore(ui): upgrade photo_view dependency 2021-07-21 10:55:00 +02:00
Salvatore Giordano 9e966fa46e fix floating date not working with expanded 2021-07-21 10:27:53 +02: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 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
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 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 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