Commit Graph
349 Commits
Author SHA1 Message Date
xsahil03x 23ebe009f7 Merge remote-tracking branch 'origin/develop' into cds-328
# Conflicts:
#	packages/stream_chat/CHANGELOG.md
2021-07-26 14:15:48 +05:30
Salvatore GiordanoandGitHub 171074368f Merge pull request #560 from GetStream/replace_random_png
feat(ui): Replace random png
2021-07-26 09:33:19 +02:00
Salvatore Giordano 8ab1ad1a2d fix analysis 2021-07-23 16:24:11 +02:00
Salvatore Giordano 9b26dafc8e export GradientAvatar 2021-07-23 16:08:47 +02:00
Salvatore Giordano 1a5b2ddfba fix goldens 2021-07-23 16:07:01 +02:00
groovinchip 4f768024c6 chore: Add language to OwnUser 2021-07-22 11:08:10 -04:00
Salvatore Giordano 30f021c381 flutter format 2021-07-22 12:08:12 +02:00
Sahil KumarandGitHub d7ab253d7b Merge branch 'develop' into feat/reverseMessageListView 2021-07-22 15:35:40 +05:30
Salvatore GiordanoandGitHub 828befa7ea Merge branch 'develop' into feat/messageListPaginationLimit 2021-07-22 12:01:25 +02:00
Salvatore GiordanoandGitHub 2c9247cfa0 Update packages/stream_chat_flutter/lib/src/message_input.dart 2021-07-22 12:01:04 +02:00
Salvatore GiordanoandGitHub c678715d93 Merge branch 'develop' into feat/reverseMessageListView 2021-07-22 11:22:51 +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
Deven Joshi f8911bb6e3 feat: Added tests and minor fixes 2021-07-21 15:02:57 +05:30
Salvatore Giordano 9e966fa46e fix floating date not working with expanded 2021-07-21 10:27:53 +02:00
Salvatore Giordano 6794bde9e4 fix analyzer 2021-07-20 12:39:08 +02:00
Deven Joshi 88ece480a2 fix: cleanup 2021-07-20 15:44:47 +05:30
Salvatore Giordano 293cb927c1 fix icon 2021-07-20 12:14:09 +02:00
Deven Joshi cfa9d25399 fix: Replaced stack text with canvas text 2021-07-20 15:39:45 +05:30
Salvatore Giordano ab35409b15 use up svg icon 2021-07-20 11:17:12 +02:00
Salvatore Giordano dff0ad9af2 fix default 2021-07-20 10:55:25 +02:00
Salvatore Giordano 069ec910a6 feat: add MessageListView.reverse property 2021-07-20 10:54:20 +02:00
Deven Joshi 7df908f9c2 fix: text style correction 2021-07-20 14:14:06 +05:30
Deven Joshi 5670e18c0f fix: remove deps 2021-07-20 13:54:19 +05:30
Deven Joshi ec1c2fce8c feat: Added docs and cleanup 2021-07-20 13:53:33 +05:30
Deven Joshi 1939cc1bc8 feat: Added gradient avatar 2021-07-20 13:46:53 +05:30
groovinchip a1f0afe83f fix: curly brace lint 2021-07-19 14:54:25 -04:00
groovinchip ddf5d45c4a fix: dartfmt on a couple of files 2021-07-19 14:44:04 -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 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
Salvatore Giordano f50ea0bac4 add paginationLimit to message list core and ui package 2021-07-19 12:05:57 +02: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 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 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
Sahil Kumar 4533828fe8 chore: fix analyzer issues
Signed-off-by: xsahil03x <[email protected]>
2021-07-16 14:42:22 +05:30
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
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