Commit Graph
319 Commits
Author SHA1 Message Date
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
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
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
Salvatore Giordano dc005ed86d fix nextMessage index 2021-07-09 10:37:16 +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 0379a17767 add video compress options (frame and quality) to message input 2021-07-06 13:20:34 +02:00
Salvatore Giordano 495351b756 remove proxy props from MessageListView 2021-07-01 10:27:44 +02:00
Salvatore Giordano bc0a70ad25 rename colors 2021-06-29 16:12:51 +02:00
Salvatore GiordanoandGitHub 9d4564151e Merge pull request #509 from GetStream/release/v2.0.0-nullsafety-8
chore: v2.0.0 nullsafety.8
2021-06-29 13:36:45 +02:00
Salvatore Giordano 418c9ae64e use late 2021-06-29 11:45:59 +02:00
Salvatore Giordano a9c7abb0d6 use getters 2021-06-29 11:43:28 +02:00
Salvatore Giordano 81b69e95bf accept list controllers as params in ui package listviews 2021-06-29 11:29:42 +02:00
Sahil KumarandGitHub 5cb87d2df5 Merge pull request #511 from GetStream/hotfix/userListErrors 2021-06-29 14:51:05 +05:30
Salvatore Giordano 29f234f69b update error builder 2021-06-29 11:09:27 +02:00
Salvatore GiordanoandGitHub 3885f0e407 Merge pull request #506 from GetStream/feat/userAvatarBuilder
feat: userAvatarBuilder in MessageWiget
2021-06-29 10:26:56 +02:00
Sahil Kumar 6017a184d6 chore(stream_chat_flutter): prepare for v2.0.0-nullsafety.8
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-28 16:50:42 +05:30
Salvatore Giordano a3a88aead1 fix user list error handling 2021-06-28 13:08:51 +02:00
Sahil Kumar 5e7891e523 remove unused showScrollToBottom property from MessageListCore
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-28 16:04:25 +05:30
Salvatore Giordano 5912edc611 add doc comment 2021-06-28 12:32:58 +02:00
Salvatore Giordano b8fd33a629 fix new lines in list 2021-06-28 11:54:23 +02:00
Salvatore Giordano ea8ee7ac6f add userAvatarBuilder 2021-06-28 10:57:07 +02:00
Salvatore Giordano 1c3dbb1595 move messagewidget in the builder 2021-06-25 14:18:56 +02:00
Salvatore Giordano 155706c8fd remove unnecessary late 2021-06-25 14:01:35 +02:00
Salvatore Giordano e1a9e4d878 use MessageWidget.copyWith in parentMessageBuilder 2021-06-25 11:30:19 +02:00
Salvatore Giordano 8b71b32bdb use MessageWidget.copyWith in messagelistview 2021-06-25 11:23:52 +02:00
Salvatore Giordano 1ceabb90f1 use MessageWidget.copyWith in actions modal 2021-06-25 10:44:28 +02:00
Salvatore Giordano dd7fafb3cf use MessageWidget.copyWith in reactions modal 2021-06-25 10:39:03 +02:00
Salvatore Giordano 87568235d5 add copyWith to Messagewidget 2021-06-25 10:22:49 +02:00
Salvatore GiordanoandGitHub 751fa51194 Merge pull request #493 from GetStream/feat/message-list-header-footer
feat: add support for messageListView header/footer
2021-06-24 17:12:11 +02:00
Sahil Kumar 5325b7cb5e fix analyzer warning
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-24 18:25:59 +05:30
Sahil Kumar c169b887af add docs
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-24 18:24:56 +05:30
Sahil Kumar 2816124c55 fix floatingDate, messageWidgetBuilder index
Signed-off-by: Sahil Kumar <[email protected]>
2021-06-24 18:19:52 +05:30