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});
@override
Widget build(BuildContext context, WidgetRef ref) => ref
Widget build(BuildContext context, WidgetRef ref) => ConstrainedBox(
constraints: BoxConstraints.loose(Size.fromWidth(400)),
child: ref
.watch(UrlPreviewController.provider(link))
.betterWhen(
data: (preview) => preview == null
? SizedBox.shrink()
: ConstrainedBox(
constraints: BoxConstraints.loose(Size.fromWidth(400)),
child: InkWell(
: InkWell(
onTap: () => ref
.watch(LaunchHelper.provider)
.launchUrl(Uri.parse(link)),