migrate app

This commit is contained in:
Salvatore Giordano
2021-05-17 15:58:10 +02:00
parent 273b24bcd8
commit 33622093e0
14 changed files with 93 additions and 82 deletions
+2 -2
View File
@@ -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(