Merge branches 'develop' and 'feat/ui-linter' of https://github.com/GetStream/stream-chat-flutter into feat/ui-linter
Conflicts: packages/stream_chat_flutter/lib/src/message_input.dart packages/stream_chat_flutter/pubspec.yaml
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
## 2.0.0-nullsafety.1
|
## 2.0.0-nullsafety.3
|
||||||
|
|
||||||
|
- Fix MessageInput overflow when there are no actions
|
||||||
|
|
||||||
|
## 2.0.0-nullsafety.2
|
||||||
|
|
||||||
- Migrate this package to null safety
|
- Migrate this package to null safety
|
||||||
|
|
||||||
|
## 1.5.4
|
||||||
|
|
||||||
- Updated `stream_chat_core` dependency
|
- Updated `stream_chat_core` dependency
|
||||||
|
|
||||||
## 1.5.3
|
## 1.5.3
|
||||||
|
|||||||
@@ -476,6 +476,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
firstChild: IconButton(
|
firstChild: IconButton(
|
||||||
onPressed: () => setState(() => _actionsShrunk = false),
|
onPressed: () => setState(() => _actionsShrunk = false),
|
||||||
icon: Transform.rotate(
|
icon: Transform.rotate(
|
||||||
|
alignment: Alignment.center,
|
||||||
angle: (widget.actionsLocation == ActionsLocation.right ||
|
angle: (widget.actionsLocation == ActionsLocation.right ||
|
||||||
widget.actionsLocation == ActionsLocation.rightInside)
|
widget.actionsLocation == ActionsLocation.rightInside)
|
||||||
? pi
|
? pi
|
||||||
@@ -493,8 +494,13 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
splashRadius: 24,
|
splashRadius: 24,
|
||||||
),
|
),
|
||||||
secondChild: FittedBox(
|
secondChild: widget.disableAttachments &&
|
||||||
|
!widget.showCommandsButton &&
|
||||||
|
widget.actions?.isNotEmpty != true
|
||||||
|
? const Offstage()
|
||||||
|
: FittedBox(
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (!widget.disableAttachments) _buildAttachmentButton(),
|
if (!widget.disableAttachments) _buildAttachmentButton(),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
||||||
version: 2.0.0-nullsafety.1
|
version: 2.0.0-nullsafety.3
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ dependencies:
|
|||||||
scrollable_positioned_list: ^0.2.0-nullsafety.0
|
scrollable_positioned_list: ^0.2.0-nullsafety.0
|
||||||
share_plus: ^2.0.3
|
share_plus: ^2.0.3
|
||||||
shimmer: ^2.0.0
|
shimmer: ^2.0.0
|
||||||
stream_chat_flutter_core: ^2.0.0-nullsafety.0
|
stream_chat_flutter_core: ^2.0.0-nullsafety.2
|
||||||
substring_highlight: ^1.0.26
|
substring_highlight: ^1.0.26
|
||||||
synchronized: ^3.0.0
|
synchronized: ^3.0.0
|
||||||
url_launcher: ^6.0.3
|
url_launcher: ^6.0.3
|
||||||
|
|||||||
@@ -1,8 +1,16 @@
|
|||||||
|
## 2.0.0-nullsafety.2
|
||||||
|
|
||||||
|
* Fix ChannelsBloc not performing calls if pagination ended
|
||||||
|
|
||||||
## 2.0.0-nullsafety.1
|
## 2.0.0-nullsafety.1
|
||||||
|
|
||||||
* Migrate this package to null safety
|
* Migrate this package to null safety
|
||||||
* Update llc dependency
|
* Update llc dependency
|
||||||
|
|
||||||
|
## 1.5.3
|
||||||
|
|
||||||
|
* Fix ChannelsBloc not performing calls if pagination ended
|
||||||
|
|
||||||
## 1.5.2
|
## 1.5.2
|
||||||
|
|
||||||
* Update llc dependency
|
* Update llc dependency
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Official Core Flutter SDK for [Stream Chat](https://getstream.io/chat/)
|
# Official Core [Flutter SDK](https://getstream.io/chat/sdk/flutter/) for [Stream Chat API](https://getstream.io/chat/)
|
||||||
|
|
||||||
> The official Flutter core components for Stream Chat, a service for
|
> The official Flutter core components for Stream Chat, a service for
|
||||||
> building chat applications.
|
> building chat applications.
|
||||||
|
|||||||
@@ -95,7 +95,10 @@ class ChannelsBlocState extends State<ChannelsBloc>
|
|||||||
}) async {
|
}) async {
|
||||||
final client = StreamChatCore.of(context).client;
|
final client = StreamChatCore.of(context).client;
|
||||||
|
|
||||||
if (_paginationEnded || _queryChannelsLoadingController.value == true) {
|
final clear = paginationParams.offset == 0;
|
||||||
|
|
||||||
|
if ((!clear && _paginationEnded) ||
|
||||||
|
_queryChannelsLoadingController.value == true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,7 +107,6 @@ class ChannelsBlocState extends State<ChannelsBloc>
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final clear = paginationParams.offset == 0;
|
|
||||||
final oldChannels = List<Channel>.from(channels ?? []);
|
final oldChannels = List<Channel>.from(channels ?? []);
|
||||||
var newChannels = <Channel>[];
|
var newChannels = <Channel>[];
|
||||||
await for (final channels in client.queryChannels(
|
await for (final channels in client.queryChannels(
|
||||||
@@ -146,7 +148,11 @@ class ChannelsBlocState extends State<ChannelsBloc>
|
|||||||
final client = StreamChatCore.of(context).client;
|
final client = StreamChatCore.of(context).client;
|
||||||
|
|
||||||
if (!widget.lockChannelsOrder) {
|
if (!widget.lockChannelsOrder) {
|
||||||
_subscriptions.add(client.on(EventType.messageNew).listen((e) {
|
_subscriptions.add(client
|
||||||
|
.on(
|
||||||
|
EventType.messageNew,
|
||||||
|
)
|
||||||
|
.listen((e) {
|
||||||
final newChannels = List<Channel>.from(channels ?? []);
|
final newChannels = List<Channel>.from(channels ?? []);
|
||||||
final index = newChannels.indexWhere((c) => c.cid == e.cid);
|
final index = newChannels.indexWhere((c) => c.cid == e.cid);
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter_core
|
name: stream_chat_flutter_core
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
||||||
version: 2.0.0-nullsafety.1
|
version: 2.0.0-nullsafety.2
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user