fix user avatar constraints
This commit is contained in:
@@ -20,7 +20,7 @@ class ChannelMediaDisplayScreen extends StatefulWidget {
|
||||
|
||||
final ShowMessageCallback? onShowMessage;
|
||||
|
||||
final MessageTheme messageTheme;
|
||||
final MessageThemeData messageTheme;
|
||||
|
||||
const ChannelMediaDisplayScreen({
|
||||
required this.messageTheme,
|
||||
|
||||
@@ -15,7 +15,7 @@ class ChatInfoScreen extends StatefulWidget {
|
||||
/// User in consideration
|
||||
final User? user;
|
||||
|
||||
final MessageTheme messageTheme;
|
||||
final MessageThemeData messageTheme;
|
||||
|
||||
const ChatInfoScreen({
|
||||
Key? key,
|
||||
@@ -79,9 +79,9 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: UserAvatar(
|
||||
user: widget.user!,
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: 72.0,
|
||||
maxHeight: 72.0,
|
||||
constraints: BoxConstraints.tightFor(
|
||||
width: 72.0,
|
||||
height: 72.0,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(36.0),
|
||||
showOnlineStatus: false,
|
||||
|
||||
@@ -16,7 +16,7 @@ import 'pinned_messages_screen.dart';
|
||||
import 'routes/routes.dart';
|
||||
|
||||
class GroupInfoScreen extends StatefulWidget {
|
||||
final MessageTheme messageTheme;
|
||||
final MessageThemeData messageTheme;
|
||||
|
||||
const GroupInfoScreen({
|
||||
Key? key,
|
||||
@@ -223,11 +223,15 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8.0, vertical: 12.0),
|
||||
horizontal: 8.0,
|
||||
vertical: 12.0,
|
||||
),
|
||||
child: UserAvatar(
|
||||
user: member.user!,
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: 40.0, maxWidth: 40.0),
|
||||
constraints: BoxConstraints.tightFor(
|
||||
height: 40.0,
|
||||
width: 40.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
@@ -684,7 +688,8 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
||||
);
|
||||
if (res == true) {
|
||||
final channel = StreamChannel.of(context).channel;
|
||||
await channel.removeMembers([StreamChat.of(context).currentUser!.id]);
|
||||
await channel
|
||||
.removeMembers([StreamChat.of(context).currentUser!.id]);
|
||||
Navigator.pop(context);
|
||||
}
|
||||
},
|
||||
@@ -894,9 +899,9 @@ class _GroupInfoScreenState extends State<GroupInfoScreen> {
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: UserAvatar(
|
||||
user: user,
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: 64.0,
|
||||
minHeight: 64.0,
|
||||
constraints: BoxConstraints.tightFor(
|
||||
height: 64.0,
|
||||
width: 64.0,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(32.0),
|
||||
),
|
||||
|
||||
@@ -20,7 +20,7 @@ class PinnedMessagesScreen extends StatefulWidget {
|
||||
|
||||
final ShowMessageCallback? onShowMessage;
|
||||
|
||||
final MessageTheme messageTheme;
|
||||
final MessageThemeData messageTheme;
|
||||
|
||||
const PinnedMessagesScreen({
|
||||
required this.messageTheme,
|
||||
@@ -168,9 +168,9 @@ class _PinnedMessagesScreenState extends State<PinnedMessagesScreen> {
|
||||
return ListTile(
|
||||
leading: UserAvatar(
|
||||
user: user,
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: 40.0,
|
||||
minHeight: 40.0,
|
||||
constraints: BoxConstraints.tightFor(
|
||||
width: 40.0,
|
||||
height: 40.0,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(28),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user