migrate app
This commit is contained in:
@@ -4,7 +4,7 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart' show Channel;
|
||||
import 'package:imessage/utils.dart';
|
||||
|
||||
class ChannelImage extends StatelessWidget {
|
||||
const ChannelImage({Key key, @required this.channel, @required this.size})
|
||||
const ChannelImage({Key? key, required this.channel, required this.size})
|
||||
: super(key: key);
|
||||
|
||||
final Channel channel;
|
||||
@@ -14,7 +14,7 @@ class ChannelImage extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final avatarUrl = channel.extraData.containsKey('image') &&
|
||||
(channel.extraData['image'] as String).isNotEmpty
|
||||
? channel.extraData['image'] as String
|
||||
? channel.extraData['image'] as String?
|
||||
: 'https://4.bp.blogspot.com/-Jx21kNqFSTU/UXemtqPhZCI/AAAAAAAAh74/BMGSzpU6F48/s1600/funny-cat-pictures-047-001.jpg';
|
||||
|
||||
return CupertinoCircleAvatar(
|
||||
|
||||
Reference in New Issue
Block a user