migrate ui

This commit is contained in:
Salvatore Giordano
2021-04-30 14:58:50 +02:00
parent 2c02f0f631
commit 34888d0fff
103 changed files with 2622 additions and 2455 deletions
@@ -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