feat: update dependencies, ui and linting
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart' show Channel;
|
||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart'
|
||||
show Channel;
|
||||
|
||||
class ChannelNameText extends StatelessWidget {
|
||||
const ChannelNameText({
|
||||
Key? key,
|
||||
required this.channel,
|
||||
this.size = 17,
|
||||
this.fontWeight,
|
||||
}) : super(key: key);
|
||||
|
||||
final Channel channel;
|
||||
final double size;
|
||||
final FontWeight? fontWeight;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -17,7 +20,7 @@ class ChannelNameText extends StatelessWidget {
|
||||
channel.extraData['name'] as String? ?? 'No name',
|
||||
style: TextStyle(
|
||||
fontSize: size,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontWeight: fontWeight,
|
||||
color: CupertinoColors.black,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user