version bump
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
## 0.2.1
|
||||||
|
|
||||||
|
- Better ui components
|
||||||
|
- Add read indicators
|
||||||
|
- Add system messages
|
||||||
|
- Use llc 0.2
|
||||||
|
- Add `ChannelsBloc` widget to manage a list of channels with pagination
|
||||||
|
|
||||||
## 0.2.1-alpha+11
|
## 0.2.1-alpha+11
|
||||||
|
|
||||||
- Update llc dependency
|
- Update llc dependency
|
||||||
|
|||||||
@@ -33,19 +33,11 @@ The example is available under the [example](https://github.com/GetStream/stream
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
stream_chat_flutter: ^0.1.19
|
stream_chat_flutter: ^0.2.0
|
||||||
```
|
```
|
||||||
|
|
||||||
You should then run `flutter packages get`
|
You should then run `flutter packages get`
|
||||||
|
|
||||||
### Alpha version
|
|
||||||
|
|
||||||
Use version `^0.2.0-alpha+2` to use the latest available version.
|
|
||||||
|
|
||||||
Note that this is still an alpha version. There may be some bugs, and the API can change in breaking ways.
|
|
||||||
|
|
||||||
Thanks to whoever tries these versions and reports bugs or suggestions.
|
|
||||||
|
|
||||||
### Android
|
### Android
|
||||||
|
|
||||||
All set ✅
|
All set ✅
|
||||||
@@ -86,6 +78,7 @@ Every widget uses the `StreamChat` or `StreamChannel` widgets to manage the stat
|
|||||||
- [MessageWidget](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/MessageWidget-class.html)
|
- [MessageWidget](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/MessageWidget-class.html)
|
||||||
- [StreamChatTheme](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/StreamChatTheme-class.html)
|
- [StreamChatTheme](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/StreamChatTheme-class.html)
|
||||||
- [ThreadHeader](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/ThreadHeader-class.html)
|
- [ThreadHeader](https://pub.dev/documentation/stream_chat_flutter/latest/stream_chat_flutter/ThreadHeader-class.html)
|
||||||
|
- ...
|
||||||
|
|
||||||
### Customizing styles
|
### Customizing styles
|
||||||
|
|
||||||
@@ -109,14 +102,13 @@ Out of the box, all chat widgets use their default styling, and there are two wa
|
|||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
theme: theme,
|
theme: theme,
|
||||||
home: Container(
|
builder: (context, child) => StreamChat(
|
||||||
child: StreamChat(
|
child: child,
|
||||||
streamChatThemeData: StreamChatThemeData.fromTheme(theme),
|
client: client,
|
||||||
client: client,
|
streamChatThemeData: StreamChatThemeData.fromTheme(theme),
|
||||||
child: ChannelListPage(),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
home: ChannelListPage(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -136,24 +128,23 @@ Out of the box, all chat widgets use their default styling, and there are two wa
|
|||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
theme: theme,
|
theme: theme,
|
||||||
home: Container(
|
builder: (context, child) => StreamChat(
|
||||||
child: StreamChat(
|
child: child,
|
||||||
streamChatThemeData: StreamChatThemeData.fromTheme(theme).copyWith(
|
client: client,
|
||||||
ownMessageTheme: MessageTheme(
|
streamChatThemeData: StreamChatThemeData.fromTheme(theme).copyWith(
|
||||||
messageBackgroundColor: Colors.black,
|
ownMessageTheme: MessageTheme(
|
||||||
messageText: TextStyle(
|
messageBackgroundColor: Colors.black,
|
||||||
color: Colors.white,
|
messageText: TextStyle(
|
||||||
),
|
color: Colors.white,
|
||||||
avatarTheme: AvatarTheme(
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
client: client,
|
avatarTheme: AvatarTheme(
|
||||||
child: ChannelListPage(),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
home: ChannelListPage(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class ChannelListPage extends StatelessWidget {
|
|||||||
filter: {
|
filter: {
|
||||||
'members': {
|
'members': {
|
||||||
'\$in': [StreamChat.of(context).user.id],
|
'\$in': [StreamChat.of(context).user.id],
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
channelPreviewBuilder: _channelPreviewBuilder,
|
channelPreviewBuilder: _channelPreviewBuilder,
|
||||||
sort: [SortOption('last_message_at')],
|
sort: [SortOption('last_message_at')],
|
||||||
@@ -73,17 +73,18 @@ class ChannelListPage extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _channelPreviewBuilder(BuildContext context, Channel channel) {
|
Widget _channelPreviewBuilder(BuildContext context, Channel channel) {
|
||||||
final lastMessage = channel.state.messages.reversed.firstWhere(
|
final lastMessage = channel.state.messages.reversed
|
||||||
(message) => message.type != 'deleted',
|
.firstWhere((message) => !message.isDeleted);
|
||||||
orElse: () => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
final subtitle = (lastMessage == null ? 'nothing yet' : lastMessage.text);
|
final subtitle = (lastMessage == null ? "nothing yet" : lastMessage.text);
|
||||||
final opacity = channel.state.unreadCount > .0 ? 1.0 : 0.5;
|
final opacity = channel.state.unreadCount > .0 ? 1.0 : 0.5;
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: ChannelImage(),
|
leading: ChannelImage(
|
||||||
|
channel: channel,
|
||||||
|
),
|
||||||
title: ChannelName(
|
title: ChannelName(
|
||||||
|
channel: channel,
|
||||||
textStyle:
|
textStyle:
|
||||||
StreamChatTheme.of(context).channelPreviewTheme.title.copyWith(
|
StreamChatTheme.of(context).channelPreviewTheme.title.copyWith(
|
||||||
color: Colors.black.withOpacity(opacity),
|
color: Colors.black.withOpacity(opacity),
|
||||||
|
|||||||
@@ -157,6 +157,9 @@ class ChannelHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.arrow_back_ios,
|
Icons.arrow_back_ios,
|
||||||
size: 15,
|
size: 15,
|
||||||
|
color: Theme.of(context).brightness == Brightness.dark
|
||||||
|
? Colors.white
|
||||||
|
: Colors.black,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
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: 0.2.1-alpha+11
|
version: 0.2.1
|
||||||
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.3.0 <3.0.0"
|
sdk: ">=2.3.0 <3.0.0"
|
||||||
@@ -21,7 +23,7 @@ dependencies:
|
|||||||
file_picker: ^1.12.0
|
file_picker: ^1.12.0
|
||||||
image_picker: ^0.6.7+2
|
image_picker: ^0.6.7+2
|
||||||
flutter_keyboard_visibility: ^3.2.1
|
flutter_keyboard_visibility: ^3.2.1
|
||||||
stream_chat: ^0.2.0-alpha+23
|
stream_chat: ^0.2.0
|
||||||
mime: ^0.9.6+3
|
mime: ^0.9.6+3
|
||||||
visibility_detector: ^0.1.5
|
visibility_detector: ^0.1.5
|
||||||
http_parser: ^3.1.4
|
http_parser: ^3.1.4
|
||||||
|
|||||||
Reference in New Issue
Block a user