migrate ui
This commit is contained in:
@@ -9,9 +9,9 @@ class UrlAttachment extends StatelessWidget {
|
||||
final EdgeInsets textPadding;
|
||||
|
||||
UrlAttachment({
|
||||
@required this.urlAttachment,
|
||||
@required this.hostDisplayName,
|
||||
@required this.textPadding,
|
||||
required this.urlAttachment,
|
||||
required this.hostDisplayName,
|
||||
required this.textPadding,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -19,7 +19,7 @@ class UrlAttachment extends StatelessWidget {
|
||||
return GestureDetector(
|
||||
onTap: () => launchURL(
|
||||
context,
|
||||
urlAttachment.ogScrapeUrl,
|
||||
urlAttachment.ogScrapeUrl!,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
@@ -35,7 +35,7 @@ class UrlAttachment extends StatelessWidget {
|
||||
children: [
|
||||
CachedNetworkImage(
|
||||
width: double.infinity,
|
||||
imageUrl: urlAttachment.imageUrl,
|
||||
imageUrl: urlAttachment.imageUrl!,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
Positioned(
|
||||
@@ -78,7 +78,7 @@ class UrlAttachment extends StatelessWidget {
|
||||
children: [
|
||||
if (urlAttachment.title != null)
|
||||
Text(
|
||||
urlAttachment.title.trim(),
|
||||
urlAttachment.title!.trim(),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: StreamChatTheme.of(context)
|
||||
@@ -88,7 +88,7 @@ class UrlAttachment extends StatelessWidget {
|
||||
),
|
||||
if (urlAttachment.text != null)
|
||||
Text(
|
||||
urlAttachment.text,
|
||||
urlAttachment.text!,
|
||||
style: StreamChatTheme.of(context)
|
||||
.textTheme
|
||||
.body
|
||||
|
||||
Reference in New Issue
Block a user