fix bottom sheet and channel name

This commit is contained in:
Salvatore Giordano
2020-11-27 09:23:12 +01:00
parent 29868aa7a9
commit 9ca8606790
3 changed files with 46 additions and 26 deletions
+2 -3
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:stream_chat/stream_chat.dart';
import 'package:stream_chat_flutter/src/stream_svg_icon.dart';
import 'package:stream_chat_flutter/src/utils.dart';
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
import 'channel_info.dart';
import 'channel_name.dart';
@@ -12,13 +13,11 @@ import 'user_avatar.dart';
class ChannelBottomSheet extends StatelessWidget {
const ChannelBottomSheet({
Key key,
@required this.channel,
}) : super(key: key);
final Channel channel;
@override
Widget build(BuildContext context) {
final channel = StreamChannel.of(context).channel;
return SafeArea(
child: Padding(
padding: const EdgeInsets.all(8.0),