Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(llc,core,ui): v4 #855

Merged
merged 266 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
9f32eb8
feat: Added copyWith to stream_attachment_picker.dart
deven98 Nov 5, 2021
11b5de6
added channel user capabilities
deven98 Nov 8, 2021
c60524e
added permission types
deven98 Nov 9, 2021
c10a2be
updated action modal
deven98 Nov 9, 2021
3460164
updated action modal
deven98 Nov 9, 2021
13b0fa0
added docs and reactions modal
deven98 Nov 9, 2021
c9f848a
added changelog
deven98 Nov 9, 2021
8a1aa66
fmt
deven98 Nov 9, 2021
616881d
always remember to remove your print statements that you use instead …
deven98 Nov 9, 2021
a61fdf2
Merge branch 'message-input-controller' of https://github.com/GetStre…
deven98 Nov 10, 2021
04f9208
Merge branch 'develop' into message-input-controller
imtoori Nov 30, 2021
0b0ff75
refactor(ui): improve message input controller
imtoori Dec 1, 2021
2b0d5b6
Merge branch 'develop' into message-input-controller
deven98 Dec 3, 2021
50896b5
Merge branch 'develop' of https://github.com/GetStream/stream-chat-fl…
deven98 Dec 3, 2021
fcb9e30
chore(ui): initial channel list view draft with controller.
xsahil03x Nov 17, 2021
2cab266
feat(ui): add channel list event handler in channel list controller.
xsahil03x Nov 25, 2021
6466d58
chore(ui): add docs
xsahil03x Nov 25, 2021
430a923
chore(ui): add support for presence.
xsahil03x Nov 29, 2021
0423153
refactor: add ChannelEvents class and remove event callbacks
HayesGordon Dec 2, 2021
5b05363
refactor: rename ChannelEvents to ChannelEventHandlers
HayesGordon Dec 2, 2021
d4bde53
refactor(llc): minor event handler changes.
xsahil03x Dec 3, 2021
f3110e9
refactor(ui): add channel list empty and error state widgets.
xsahil03x Dec 6, 2021
093a668
refactor(ui): add stream_channel_info_bottom_sheet.dart
xsahil03x Dec 8, 2021
c301b51
refactor(ui): improve channel list and controller
xsahil03x Dec 8, 2021
51e7c87
refactor(ui): minor doc changes
xsahil03x Dec 8, 2021
830ffcd
Merge branch 'develop' into message-input-controller
imtoori Dec 10, 2021
ff2c880
minor updates
imtoori Dec 10, 2021
0ec6e1c
minor updates
imtoori Dec 10, 2021
b39c013
add basic test and fix default validator
imtoori Dec 10, 2021
42ed167
chore: docs and linting improvements
HayesGordon Dec 10, 2021
527ac45
fix tests
imtoori Dec 13, 2021
b372f7b
revert message.dart
imtoori Dec 13, 2021
0ac0d0d
Merge pull request #821 from GetStream/chore/message-input-controller…
imtoori Dec 13, 2021
64c32b9
Merge branch 'develop' into message-input-controller
imtoori Dec 13, 2021
67f9700
restoration wip
imtoori Dec 13, 2021
c9effc4
Merge branch 'message-input-controller' of https://github.com/GetStre…
deven98 Dec 13, 2021
9f8c511
fix: registration
deven98 Dec 13, 2021
a49a0ed
removed print
deven98 Dec 13, 2021
ce20c24
fix emoji overlay
imtoori Dec 14, 2021
ec28d00
fix message input quoted message
imtoori Dec 15, 2021
099e904
fixed bugs
deven98 Dec 17, 2021
e19cc87
feat(ui): add support for OG Attachment preview.
xsahil03x Dec 20, 2021
50e9cb3
chore(ui): minor fixes
xsahil03x Dec 20, 2021
56e030f
feat(ui, core): handle ogAttachment modification via message_input_co…
xsahil03x Dec 20, 2021
0c2ce9c
fixed docs
deven98 Dec 20, 2021
8b6c732
feat(ui, core): minor fixes and improvements
xsahil03x Dec 21, 2021
ba7e915
Merge branch 'develop' into message-input-controller
deven98 Dec 21, 2021
3f0eb33
cleanup
deven98 Dec 21, 2021
3c6f345
fixed tests for modal
deven98 Dec 21, 2021
bb60026
Merge branch 'develop' into message-input-controller
imtoori Dec 27, 2021
9652c97
fix tests
imtoori Dec 27, 2021
a445001
Merge branch 'message-input-controller' into feat/unfurl-url-client-side
imtoori Dec 28, 2021
8278e1f
fix analysis
imtoori Dec 29, 2021
e85b1a8
move message input controllers to ui
imtoori Dec 29, 2021
fbf8694
use a function for textPatternStyle and add default to theme
imtoori Jan 3, 2022
dbcdd5a
fix tests
imtoori Jan 3, 2022
504e72d
add TLD validity check
imtoori Jan 3, 2022
631ab68
make the tld non-linear-searchy
deven98 Jan 4, 2022
fa5e993
tried fix for mip bug
deven98 Jan 4, 2022
334f360
Merge branch 'develop' of https://github.com/GetStream/stream-chat-fl…
deven98 Jan 5, 2022
a5baffa
Merge branch 'message-input-controller' into feat/capabilities
imtoori Jan 5, 2022
5d163b9
add missing permissions and ui
imtoori Jan 5, 2022
abac011
add missing permissions and ui
imtoori Jan 5, 2022
ea80559
added localizations
deven98 Jan 6, 2022
11ad015
added bottom sheet capabilities
deven98 Jan 6, 2022
8492d5e
added mute channel permission
deven98 Jan 6, 2022
dcbdfc3
added mip didUpdateWidget for focusnode
deven98 Jan 11, 2022
8bd826d
change var to focusnode
deven98 Jan 11, 2022
e21d329
add listener to effective controller
deven98 Jan 11, 2022
a1d9641
Merge pull request #854 from GetStream/mip-duw
imtoori Jan 11, 2022
df3ba09
Merge pull request #835 from GetStream/feat/unfurl-url-client-side
imtoori Jan 11, 2022
b36c4f1
Merge pull request #742 from GetStream/message-input-controller
imtoori Jan 11, 2022
c32311e
Merge branch 'v4' of https://github.com/GetStream/stream-chat-flutter…
deven98 Jan 13, 2022
bbfdb65
fmt
deven98 Jan 13, 2022
f2ab29d
analysis
deven98 Jan 13, 2022
6729ef1
test fixes
deven98 Jan 14, 2022
fbe933b
fmt
deven98 Jan 14, 2022
cd50ee5
fmt
deven98 Jan 14, 2022
b2e20b8
add send-links capability with translation
imtoori Jan 17, 2022
9b0fb58
add tld check
imtoori Jan 17, 2022
3c9f87e
fix(llc): fix truncate channel payload
imtoori Jan 18, 2022
393df3e
Merge pull request #762 from GetStream/feat/capabilities
imtoori Jan 18, 2022
96fae22
update example
imtoori Jan 18, 2022
88dbc09
Merge branch 'develop' into v4
imtoori Jan 25, 2022
77d1056
fix(llc): use local ownCapabilities for `channel.updated` events
imtoori Jan 25, 2022
5dc3897
added properties
deven98 Jan 28, 2022
9edf025
docs
deven98 Jan 28, 2022
675d332
docs
deven98 Jan 28, 2022
0524d17
changelog
deven98 Jan 28, 2022
449247b
chore(repo): update melos in ci
imtoori Jan 28, 2022
4690106
chore(llc): use path dependency for stream_chat example
imtoori Jan 28, 2022
2913651
chore(llc): enable verbose mode
imtoori Jan 28, 2022
281c045
chore(repo): bump flutter version
imtoori Jan 28, 2022
bc4ed44
Merge pull request #879 from GetStream/mip-customization
imtoori Jan 31, 2022
e508efc
Merge branch 'develop' into feat/stream-channel-listview
imtoori Feb 1, 2022
99af4ab
feat(llc): Add `queryBannedUsers` endpoint.
xsahil03x Jan 31, 2022
e1bdb07
feat(llc): deprecate `channel.banUser` in favor of `channel.banMember`.
xsahil03x Jan 31, 2022
d82c533
fix(llc): Update channel state when member gets banned/unbanned.
xsahil03x Jan 31, 2022
3b00fec
chore(llc): update CHANGELOG.md
xsahil03x Jan 31, 2022
7e2a184
chore(repo): fix analysis
imtoori Jan 31, 2022
1bcea05
chore(repo): fix metrics
imtoori Jan 31, 2022
6c624b7
fix(llc): include `message.user` while saving users in persistence.
xsahil03x Jan 26, 2022
03bd2e1
chore(llc): update CHANGELOG.md
xsahil03x Jan 26, 2022
c80957e
fix: thread message deletion
deven98 Jan 24, 2022
bc8784f
test(llc): add tests
xsahil03x Feb 1, 2022
d959131
Merge branch 'v4' into feat/stream-channel-listview
imtoori Feb 1, 2022
f53ee0b
fix analysis and update examples
imtoori Feb 1, 2022
e80cebe
deprecate old widgets
imtoori Feb 1, 2022
6351fa0
deprecate old widgets
imtoori Feb 1, 2022
ce22e85
Update packages/stream_chat_flutter_core/lib/src/channels_bloc.dart
imtoori Feb 1, 2022
6571cdd
Merge branch 'develop' into v4
imtoori Feb 1, 2022
202af02
chore: move controllers from ui to core
xsahil03x Feb 7, 2022
7d2bb53
Merge branch 'develop' into v4
imtoori Mar 7, 2022
f9ae1b9
Merge branch 'v4' into feat/stream-channel-listview
imtoori Mar 7, 2022
23c0101
Added a flag to control autocorrect in messageinput and a field to pr…
Mar 7, 2022
2e4c275
Merge branch 'develop' of https://github.com/GetStream/stream-chat-fl…
Mar 7, 2022
165e7a5
test(llc): fix tests
xsahil03x Mar 7, 2022
0c1fb24
Merge branch 'v4' of github.com:GetStream/stream-chat-flutter into fe…
xsahil03x Mar 7, 2022
357357c
fix tests
imtoori Mar 8, 2022
f8c0f80
add missing localizations
imtoori Mar 8, 2022
55b8729
Merge pull request #775 from GetStream/feat/stream-channel-listview
imtoori Mar 8, 2022
a7e3839
refactor(ui, core): Deprecate v3
xsahil03x Mar 10, 2022
4565157
chore(ui): export v3 MessageInput widget
xsahil03x Mar 10, 2022
a7b4ad3
fix mention username/id replacing
imtoori Mar 11, 2022
d708064
refactor(ui): remove video compression
xsahil03x Mar 15, 2022
03fceb0
Merge remote-tracking branch 'origin/refactor/deprecate-v3' into refa…
xsahil03x Mar 15, 2022
2b09747
fix(ui): fix channel list tile style for mentioned users
xsahil03x Mar 17, 2022
b79510a
Merge branch 'develop' into refactor/deprecate-v3
imtoori Mar 17, 2022
fe786ca
Merge pull request #1002 from GetStream/refactor/deprecate-v3
imtoori Mar 17, 2022
5589203
Merge branch 'develop' of https://github.com/GetStream/stream-chat-fl…
Mar 21, 2022
2fc2861
Merge branch 'v4' of https://github.com/GetStream/stream-chat-flutter…
Mar 21, 2022
ec9d077
Changed permission request api in attachment picker
Mar 21, 2022
b42b545
Merge branch 'migrate/photo_permission_api' of https://github.com/Get…
Mar 21, 2022
c2f5b2b
Moved autoCorrect flag to v4 message input and added doc comments for…
Mar 21, 2022
d59a755
Add flag to control if default emoji suggestions overlay is visible
Mar 21, 2022
7507e8b
Merge branch 'develop' into v4
imtoori Mar 21, 2022
acbc754
Merge branch 'v4' of https://github.com/GetStream/stream-chat-flutter…
Mar 21, 2022
35dec5b
Merge pull request #1029 from GetStream/migrate/photo_permission_api
imtoori Mar 21, 2022
f907450
feat(ui): Update slidable to 1.2.0
xsahil03x Mar 21, 2022
4be9ff2
add dependency override to example
imtoori Mar 21, 2022
9f120d6
use local deps
imtoori Mar 21, 2022
bd7c74a
fix deps
imtoori Mar 21, 2022
d39988f
use local deps
imtoori Mar 21, 2022
ed72f29
use local deps
imtoori Mar 21, 2022
48b93fd
fix android build?
imtoori Mar 21, 2022
04f2d05
fix android build for persistence
imtoori Mar 21, 2022
cc84a87
Merge pull request #1031 from GetStream/feat/slidable-1.2.0
imtoori Mar 21, 2022
335d69a
Merge branch 'v4' of https://github.com/GetStream/stream-chat-flutter…
Mar 22, 2022
5f93867
feat(ui): Calculate slidable extentRatio in case of custom actions
xsahil03x Mar 22, 2022
1358a68
Merge pull request #1035 from GetStream/slidable-extent-ratio
imtoori Mar 22, 2022
5f12802
fix reconnection event
imtoori Mar 22, 2022
2c2b6bd
fix reconnection event
imtoori Mar 23, 2022
d387ae2
update pubspec and changelogs
imtoori Mar 23, 2022
9eefb74
remove log
imtoori Mar 23, 2022
0a4eb0a
feat(ui): only handle the latest events in channelEventSubscription
xsahil03x Mar 23, 2022
67dad76
feat(ui): improve the message for skipping the event.
xsahil03x Mar 23, 2022
025e20d
Merge branch 'v4' into release/4.0.0-beta.0
imtoori Mar 23, 2022
363c951
update changelog
imtoori Mar 23, 2022
a0f3533
fix format
imtoori Mar 23, 2022
21a8110
fix format
imtoori Mar 23, 2022
a8e04e8
fix imports
imtoori Mar 23, 2022
fae95c9
Merge pull request #1037 from GetStream/release/4.0.0-beta.0
imtoori Mar 23, 2022
1d1b6b8
Merge remote-tracking branch 'origin/develop' into v4
xsahil03x Apr 1, 2022
9dd42f1
Merge branch 'develop' into v4
imtoori Apr 4, 2022
5e820c9
Merge branch 'v4' of https://github.com/GetStream/stream-chat-flutter…
Apr 4, 2022
44f17f0
docs(ui): update code documentation and tutorials
HayesGordon Apr 4, 2022
67c094b
Added an option to pass InlineSpan builders for full control of messa…
Apr 5, 2022
c37560c
fix(ui): fix messageInput removing last space
imtoori Apr 6, 2022
e93f6da
Merge branch 'v4' of https://github.com/GetStream/stream-chat-flutter…
Apr 6, 2022
92b8711
Removed the inline span builder code from messageinput
Apr 6, 2022
1bb3c05
fix tests
imtoori Apr 7, 2022
e35259f
Merge pull request #1057 from GetStream/v4-doc-fixes
imtoori Apr 7, 2022
65a5af7
Merge pull request #1030 from GetStream/live-event-improvements
imtoori Apr 7, 2022
0d3ed3f
chore(ui): update changelog
imtoori Apr 12, 2022
e59a2b0
Merge branch 'develop' into v4
imtoori Apr 13, 2022
180c24a
Implemented StreamAttachmentPackage and fixed operations in widgets l…
Apr 13, 2022
5587622
Removed print statements from code, sorry for that
Apr 13, 2022
ff31f46
Merge pull request #1076 from GetStream/fix/full_screen_media
imtoori Apr 13, 2022
4facc30
Added the updates in changelog
Apr 13, 2022
a0c8522
Merge pull request #1078 from GetStream/add/live_improvement_changelog
imtoori Apr 13, 2022
1926076
chore(llc,core,ui): update pubspec and changelogs
imtoori Apr 13, 2022
2e8d663
Added attachment change update to changelog
Apr 13, 2022
9d0f66e
Merge branch 'develop' into v4
imtoori Apr 14, 2022
2bd088d
Merge branch 'v4' into release/4.0.0-beta.2
imtoori Apr 14, 2022
affe37e
fix(ui): align new widgets to develop fixes
imtoori Apr 14, 2022
4780330
Fixed failing tests
Apr 14, 2022
e75fce2
Merge branch 'release/4.0.0-beta.2' into fix/gallery_attachment_tests
imtoori Apr 14, 2022
a2f1981
Merge pull request #1084 from GetStream/fix/gallery_attachment_tests
imtoori Apr 14, 2022
da4fd16
add test
imtoori Apr 14, 2022
6d0989a
Merge pull request #1079 from GetStream/release/4.0.0-beta.2
imtoori Apr 14, 2022
2323c59
fix scroll to bottom glitching
imtoori Apr 14, 2022
f074bcc
feat(ui, core): add remaining v4 list-views
xsahil03x Apr 19, 2022
0f8c92f
chore(core): deprecate UsersBloc and MessageSearchBloc
xsahil03x Apr 22, 2022
1d94731
Merge pull request #1094 from GetStream/feat/additional-list-views
imtoori Apr 22, 2022
1781f31
chore(ui): update changelog
imtoori Apr 22, 2022
942af38
feat(core, ui): added PagedValueGridView, added additional params in …
xsahil03x Apr 25, 2022
381e1c0
chore(core): remove dead code
xsahil03x Apr 25, 2022
b6bb360
Migrated llc Lists to be nullable instead of being an empty array
ayush221b Apr 26, 2022
38ace99
format
imtoori Apr 27, 2022
0d77061
Merge pull request #1105 from GetStream/migrate/empty_array_to_null
imtoori Apr 27, 2022
a3a23fe
versioning docs
imtoori Apr 28, 2022
ec6ac99
StreamChannelListView
imtoori Apr 28, 2022
8afc669
StreamChannelListView
imtoori Apr 28, 2022
e0f3177
StreamMessageListView
imtoori Apr 28, 2022
1fedb30
Migrated guides in the docs to v4
ayush221b Apr 28, 2022
6edeca7
Merge branch 'docs/v4' of https://github.com/GetStream/stream-chat-fl…
ayush221b Apr 28, 2022
bc6f392
StreamMessageInput
imtoori Apr 28, 2022
4372b07
StreamUserListView
imtoori Apr 28, 2022
0568f81
rename file
imtoori Apr 28, 2022
936872c
Changed customising attachment guide to use controller
ayush221b Apr 28, 2022
5c5e0be
Merge branch 'docs/v4' of https://github.com/GetStream/stream-chat-fl…
ayush221b Apr 28, 2022
9e937e8
StreamMessageSearchListView
imtoori Apr 28, 2022
f3d3715
StreamChannelListHeader
imtoori Apr 28, 2022
6c2c600
StreamChannelListHeader
imtoori Apr 28, 2022
94c4db0
StreamChannelHeader
imtoori Apr 29, 2022
d1e7a7a
StreamMessageWidget
imtoori Apr 29, 2022
1e9a5b6
feat(core, ui): add grid views, minor refactoring
xsahil03x Apr 29, 2022
2142577
chore(core): remove stream_channel_list_loading_tile.dart
xsahil03x Apr 29, 2022
bf94372
core intro
imtoori Apr 29, 2022
5e96574
feat(ui): add stream_message_search_grid_view.dart
xsahil03x Apr 29, 2022
7589e39
chore(ui): export StreamMessageSearchGridView
xsahil03x Apr 29, 2022
264253f
chore(ui): update doc
xsahil03x Apr 29, 2022
51a3711
chore(ui): remove generics from grid views, update docs
xsahil03x Apr 29, 2022
f29daff
docs: v4 migration guide
HayesGordon Apr 29, 2022
eac9d09
Merge pull request #1109 from GetStream/feat/grid-views
imtoori Apr 29, 2022
6048d61
add exports, minor refactoring
imtoori Apr 29, 2022
ba353a2
update core example
imtoori Apr 29, 2022
28e8910
deprecate core lists
imtoori Apr 29, 2022
da627a6
Merge branch 'develop' into v4
imtoori Apr 29, 2022
a77dba0
Merge branch 'v4' into docs/v4
imtoori Apr 29, 2022
487c420
StreamChannelListController
imtoori May 2, 2022
2083c3d
StreamUserListController
imtoori May 2, 2022
736d70e
StreamMessageSearchListController
imtoori May 2, 2022
402b003
StreamMessageInputController
imtoori May 2, 2022
0ec8045
LazyLoadScrollView
imtoori May 2, 2022
bd12ece
PagedValueListenableBuilder
imtoori May 2, 2022
a2e7bc4
cleanup
imtoori May 2, 2022
52e5903
doc(docs): add stream_channel_list_event_handler.mdx
xsahil03x May 2, 2022
1522181
doc(docs): add grid docs
imtoori May 2, 2022
ef1f6cf
fix typo
imtoori May 2, 2022
37ca6f7
Update docusaurus/docs/Flutter/stream_chat_flutter/stream_message_wid…
imtoori May 2, 2022
6f60324
remove deprecated stuff from older versions
imtoori May 2, 2022
ecfb5aa
Update docusaurus/docs/Flutter/guides/migration_guide_4_0.mdx
imtoori May 2, 2022
ce16002
Merge pull request #1108 from GetStream/docs/v4
imtoori May 2, 2022
69b6ae7
fix test
imtoori May 2, 2022
61e4c47
fix analysis
imtoori May 2, 2022
2e54334
update pubspec and changelogs
imtoori May 2, 2022
4483404
fix publishing
imtoori May 3, 2022
bc63a48
update readme
imtoori May 3, 2022
7850e10
doc(docs): add removed deprecated methods
imtoori May 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/stream_flutter_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
flutter pub global activate melos ${{ env.melos_version }}
- name: "Bootstrap Workspace"
run: melos bootstrap
run: melos bootstrap --verbose
- name: "Dart Analyze"
run: |
melos run analyze
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ This repository contains code for our [Dart](https://dart.dev/) and [Flutter](ht

Stream allows developers to rapidly deploy scalable feeds and chat messaging with an industry leading 99.999% uptime SLA guarantee.

**V4 Migration Guide**

For upgrading from V3 to V4, please refer to the [V4 Migration Guide](https://getstream.io/chat/docs/sdk/flutter/guides/migration_guide_4_0/)

## Sample apps and demos
Our team maintains a dedicated repository for fully-fledged sample applications and demos. Consider checking out [GetStream/flutter-samples](https://github.com/GetStream/flutter-samples) to learn more or get started by looking at our latest [Stream Chat demo](https://github.com/GetStream/flutter-samples/tree/main/packages/stream_chat_v1).

Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ linter:
- prefer_constructors_over_static_methods
- prefer_contains
- prefer_equal_for_default_values
- prefer_expression_function_bodies
- prefer_final_fields
- prefer_final_in_for_each
- prefer_final_locals
Expand Down
Binary file added docusaurus/docs/Flutter/assets/slidable_demo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Scaffold(
child: Column(
children: [
Expanded(
child: MessageListView(),
child: StreamMessageListView(),
),
MessageInput(),
StreamMessageInput(),
],
),
),
Expand Down Expand Up @@ -81,17 +81,18 @@ Stack(
child: Column(
children: const [
Expanded(
child: MessageListViewTheme(
data: MessageListViewThemeData(
child: StreamMessageListViewTheme(
data: StreamMessageListViewThemeData(
backgroundColor: Colors.transparent,
),
child: MessageListView(),
child: StreamMessageListView(),
),
),
MessageInput(),
StreamMessageInput(),
],
),
),
],
),
```
```

30 changes: 15 additions & 15 deletions docusaurus/docs/Flutter/guides/adding_custom_attachments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ own types of attachments through the SDK such as location, audio, etc.

This involves doing three things:

1) Rendering the attachment thumbnail in the `MessageInput`
1) Rendering the attachment thumbnail in the `StreamMessageInput`

2) Sending a message with the custom attachment

Expand All @@ -27,7 +27,7 @@ Let's build an example of location sharing option in the app:

![](../assets/location_sharing_example.jpg)

* Show a "Share Location" button next to MessageInput Textfield.
* Show a "Share Location" button next to StreamMessageInput Textfield.

* When the user presses this button, it should fetch the current location coordinates of the user, and send a message on the channel as follows:

Expand All @@ -53,14 +53,14 @@ Please check their [setup instructions](https://pub.dev/packages/geolocator) on
NOTE: If you are testing on iOS simulator, you will need to set some dummy coordinates, as mentioned [here](https://stackoverflow.com/a/31238119/7489541).
Also don't forget to enable "location update" capability in background mode, from XCode.

On the receiver end, `location` type attachment should be rendered in map view, in the `MessageListView`.
On the receiver end, `location` type attachment should be rendered in map view, in the `StreamMessageListView`.
We are going to use [Google Static Maps API](https://developers.google.com/maps/documentation/maps-static/overview) to render the map in the message.
You can use other libraries as well such as [google_maps_flutter](https://pub.dev/packages/google_maps_flutter).

First, we add a button which when clicked fetches and shares location into the `MessageInput`:

```dart
MessageInput(
StreamMessageInput(
actions: [
InkWell(
child: Icon(
Expand Down Expand Up @@ -146,10 +146,10 @@ Next, we build the Static Maps URL (Add your API key before using the code snipp
}
```

And then modify the `MessageListView` and tell it how to build a location attachment, using the `messageBuilder` property and copying the default message implementation overriding the `customAttachmentBuilders` property:
And then modify the `StreamMessageListView` and tell it how to build a location attachment, using the `messageBuilder` property and copying the default message implementation overriding the `customAttachmentBuilders` property:

```dart
MessageListView(
StreamMessageListView(
messageBuilder: (context, details, messages, defaultMessage) {
return defaultMessage.copyWith(
customAttachmentBuilders: {
Expand Down Expand Up @@ -179,15 +179,15 @@ To do this, we will:

1) Add an attachment instead of sending a message

2) Customize the `MessageInput`
2) Customize the `StreamMessageInput`

First, we add the attachment when the location button is clicked:

```dart
GlobalKey<MessageInputState> _messageInputKey = GlobalKey();
StreamMessageInputController _messageInputController = StreamMessageInputController();

MessageInput(
key: _messageInputKey,
StreamMessageInput(
messageInputController: _messageInputController,
actions: [
InkWell(
child: Icon(
Expand All @@ -197,7 +197,7 @@ First, we add the attachment when the location button is clicked:
),
onTap: () {
_determinePosition().then((value) {
_messageInputKey.currentState.addAttachment(
_messageInputController.addAttachment(
Attachment(
uploadState: UploadState.success(),
type: 'location',
Expand All @@ -219,8 +219,8 @@ First, we add the attachment when the location button is clicked:
After this, we can build the thumbnail:

```dart
MessageInput(
key: _messageInputKey,
StreamMessageInput(
messageInputController: _messageInputController,
actions: [
InkWell(
child: Icon(
Expand All @@ -230,7 +230,7 @@ MessageInput(
),
onTap: () {
_determinePosition().then((value) {
_messageInputKey.currentState.addAttachment(
_messageInputController.addAttachment(
Attachment(
uploadState: UploadState.success(),
type: 'location',
Expand Down Expand Up @@ -259,6 +259,6 @@ MessageInput(
),
```

And we can see the thumbnails in the MessageInput:
And we can see the thumbnails in the StreamMessageInput:

![](../assets/location_sharing_example_message_thumbnail.jpg)
10 changes: 5 additions & 5 deletions docusaurus/docs/Flutter/guides/customize_message_actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Additionally, pinning a message requires you to add the roles which are allowed
### Partially remove some message actions

For example, if you only want to keep "copy message" and "delete message",
here is how to do it using the `messageBuilder` with our `MessageWidget`.
here is how to do it using the `messageBuilder` with our `StreamMessageWidget`.

```dart
MessageListView(
StreamMessageListView(
messageBuilder: (context, details, messages, defaultMessage) {
return defaultMessage.copyWith(
showFlagButton: false,
Expand All @@ -61,14 +61,14 @@ The SDK also allows you to add new actions into the dialog.

For example, let's suppose you want to introduce a new message action - "Demo Action":

We use the `customActions` parameter of the `MessageWidget` to add extra actions.
We use the `customActions` parameter of the `StreamMessageWidget` to add extra actions.

```dart
MessageListView(
StreamMessageListView(
messageBuilder: (context, details, messages, defaultMessage) {
return defaultMessage.copyWith(
customActions: [
MessageAction(
StreamMessageAction(
leading: Icon(Icons.add),
title: Text('Demo Action'),
onTap: (message) {
Expand Down
46 changes: 23 additions & 23 deletions docusaurus/docs/Flutter/guides/customize_message_widget.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: customize_message_widget
sidebar_position: 11
title: Customizing The MessageWidget
title: Customizing The StreamMessageWidget
---

Customizing Text Messages
Expand All @@ -11,16 +11,16 @@ Customizing Text Messages
Every application provides a unique look and feel to their own messaging interface including and not
limited to fonts, colors, and shapes.

This guide details how to customize the `MessageWidget` in the Stream Chat Flutter UI SDK.
This guide details how to customize the `StreamMessageWidget` in the Stream Chat Flutter UI SDK.

### Building Custom Messages

This guide goes into detail about the ability to customize the `MessageWidget`. However, if you want
to customize the default `MessageWidget` in the `MessageListView` provided, you can use the `.copyWith()` method
provided inside the `messageBuilder` parameter of the `MessageListView` like this:
This guide goes into detail about the ability to customize the `StreamMessageWidget`. However, if you want
to customize the default `StreamMessageWidget` in the `StreamMessageListView` provided, you can use the `.copyWith()` method
provided inside the `messageBuilder` parameter of the `StreamMessageListView` like this:

```dart
MessageListView(
StreamMessageListView(
messageBuilder: (context, details, messageList, defaultImpl) {
// Your implementation of the message here
// E.g: return Text(details.message.text ?? '');
Expand All @@ -30,8 +30,8 @@ MessageListView(

### Theming

You can customize the `MessageWidget` using the `StreamChatTheme` class, so that you can change the
message theme at the top instead of creating your own `MessageWidget` at the lower implementation level.
You can customize the `StreamMessageWidget` using the `StreamChatTheme` class, so that you can change the
message theme at the top instead of creating your own `StreamMessageWidget` at the lower implementation level.

There are several things you can change in the theme including text styles and colors of various elements.

Expand All @@ -49,13 +49,13 @@ Here is an example:
StreamChatThemeData(

/// Sets theme for user's messages
ownMessageTheme: MessageThemeData(
ownMessageTheme: StreamMessageThemeData(
messageBackgroundColor: colorTheme.textHighEmphasis,
),

/// Sets theme for received messages
otherMessageTheme: MessageThemeData(
avatarTheme: AvatarThemeData(
otherMessageTheme: StreamMessageThemeData(
avatarTheme: StreamAvatarThemeData(
borderRadius: BorderRadius.circular(8),
),
),
Expand All @@ -67,11 +67,11 @@ StreamChatThemeData(

#### Change message text style

The `MessageWidget` has multiple `Text` widgets that you can manipulate the styles of. The three main
The `StreamMessageWidget` has multiple `Text` widgets that you can manipulate the styles of. The three main
are the actual message text, user name, message links, and the message timestamp.

```dart
MessageThemeData(
StreamMessageThemeData(
messageTextStyle: TextStyle(...),
createdAtStyle: TextStyle(...),
messageAuthorStyle: TextStyle(...),
Expand All @@ -86,8 +86,8 @@ MessageThemeData(
You can change the attributes of the avatar (if displayed) using the `avatarTheme` property.

```dart
MessageThemeData(
avatarTheme: AvatarThemeData(
StreamMessageThemeData(
avatarTheme: StreamAvatarThemeData(
borderRadius: BorderRadius.circular(8),
),
)
Expand All @@ -100,7 +100,7 @@ MessageThemeData(
You also customize the reactions attached to every message using the theme.

```dart
MessageThemeData(
StreamMessageThemeData(
reactionsBackgroundColor: Colors.red,
reactionsBorderColor: Colors.redAccent,
reactionsMaskColor: Colors.pink,
Expand All @@ -111,12 +111,12 @@ MessageThemeData(

### Changing Message Actions

When a message is long pressed, the `MessageActionsModal` is shown.
When a message is long pressed, the `StreamMessageActionsModal` is shown.

The `MessageWidget` allows showing or hiding some options if you so choose.
The `StreamMessageWidget` allows showing or hiding some options if you so choose.

```dart
MessageWidget(
StreamMessageWidget(
...
showUsername = true,
showTimestamp = true,
Expand All @@ -137,11 +137,11 @@ MessageWidget(

### Building attachments

The `customAttachmentBuilder` property allows you to build any kind of attachment (inbuilt or custom)
The `customAttachmentBuilders` property allows you to build any kind of attachment (inbuilt or custom)
in your own way. While a separate guide is written for this, it is included here because of relevance.

```dart
MessageListView(
StreamMessageListView(
messageBuilder: (context, details, messages, defaultMessage) {
return defaultMessage.copyWith(
customAttachmentBuilders: {
Expand All @@ -163,7 +163,7 @@ MessageListView(

### Widget Builders

Some parameters allow you to construct your own widget in place of some elements in the `MessageWidget`.
Some parameters allow you to construct your own widget in place of some elements in the `StreamMessageWidget`.

These are:
* `userAvatarBuilder` : Allows user to substitute their own widget in place of the user avatar.
Expand All @@ -173,7 +173,7 @@ These are:
* `deletedBottomRowBuilder` : Allows user to substitute their own widget in the bottom of the message when deleted.

```dart
MessageWidget(
StreamMessageWidget(
...
textBuilder: (context, message) {
// Add your own text implementation here.
Expand Down
Loading