Remove flutter chat #26

Manually merged
Henry-Hiles merged 108 commits from remove-flutter-chat into main 2026-05-22 15:26:28 -04:00
Showing only changes of commit 200ce2285c - Show all commits

limit size of loading indicator for link previews

Henry Hiles 2026-05-19 21:45:51 -04:00
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -12,14 +12,14 @@ class LinkPreview extends ConsumerWidget {
const LinkPreview(this.link, {super.key}); const LinkPreview(this.link, {super.key});
@override @override
Widget build(BuildContext context, WidgetRef ref) => ref Widget build(BuildContext context, WidgetRef ref) => ConstrainedBox(
.watch(UrlPreviewController.provider(link)) constraints: BoxConstraints.loose(Size.fromWidth(400)),
.betterWhen( child: ref
data: (preview) => preview == null .watch(UrlPreviewController.provider(link))
? SizedBox.shrink() .betterWhen(
: ConstrainedBox( data: (preview) => preview == null
constraints: BoxConstraints.loose(Size.fromWidth(400)), ? SizedBox.shrink()
child: InkWell( : InkWell(
onTap: () => ref onTap: () => ref
.watch(LaunchHelper.provider) .watch(LaunchHelper.provider)
.launchUrl(Uri.parse(link)), .launchUrl(Uri.parse(link)),
@ -64,6 +64,6 @@ class LinkPreview extends ConsumerWidget {
), ),
), ),
), ),
), ),
); );
} }