save config for advanced options

This commit is contained in:
Salvatore Giordano
2020-11-25 15:50:00 +01:00
parent 58b079abba
commit 3c9072e81c
5 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ class ChannelPreview extends StatelessWidget {
.isAfter(channel
.state.lastMessage.createdAt))
.length ==
(channel.memberCount ?? 0) - 1,
(channel.memberCount ?? 0),
),
);
}
+2 -1
View File
@@ -426,12 +426,13 @@ class _MessageWidgetState extends State<MessageWidget> {
top: 0,
child: Material(
color: Colors.white,
clipBehavior: Clip.antiAlias,
shape: CircleBorder(),
child: Padding(
padding: const EdgeInsets.all(1.0),
child: UserAvatar(
user: e.user,
constraints: BoxConstraints.loose(Size.fromRadius(16)),
constraints: BoxConstraints.loose(Size.fromRadius(8)),
showOnlineStatus: false,
),
),
+1
View File
@@ -40,6 +40,7 @@ class UserAvatar extends StatelessWidget {
final streamChatTheme = StreamChatTheme.of(context);
Widget avatar = ClipRRect(
clipBehavior: Clip.antiAlias,
borderRadius: borderRadius ??
streamChatTheme.ownMessageTheme.avatarTheme.borderRadius,
child: Container(