feat: update dependencies, ui and linting

This commit is contained in:
Gordon Hayes
2021-11-15 12:19:31 +01:00
parent 575fa4863b
commit f9df3647a0
16 changed files with 332 additions and 315 deletions
+5 -2
View File
@@ -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,
),
);