increase min sdk and apply new formatter

This commit is contained in:
Fabian Freund
2025-02-18 15:37:03 +01:00
parent f7885fc829
commit a1ee8bef35
266 changed files with 11329 additions and 10058 deletions
@@ -62,9 +62,7 @@ class ChatArchiveDetailScreen extends HookConsumerWidget {
onPressed: () async {
if (chatAsync.valueOrNull != null) {
await Clipboard.setData(
ClipboardData(
text: chatAsync.valueOrNull!,
),
ClipboardData(text: chatAsync.valueOrNull!),
);
}
},
@@ -94,23 +92,24 @@ class ChatArchiveDetailScreen extends HookConsumerWidget {
enabled: chatAsync.isLoading,
justifyMultiLineText: false,
child: chatAsync.when(
data: (data) => Markdown(
data: data,
selectable: true,
onTapLink: (text, href, title) async {
if (href != null) {
if (Uri.parse(href) case final Uri url) {
await ref
.read(tabRepositoryProvider.notifier)
.addTab(url: url);
data:
(data) => Markdown(
data: data,
selectable: true,
onTapLink: (text, href, title) async {
if (href != null) {
if (Uri.parse(href) case final Uri url) {
await ref
.read(tabRepositoryProvider.notifier)
.addTab(url: url);
if (context.mounted) {
context.go(BrowserRoute().location);
if (context.mounted) {
context.go(BrowserRoute().location);
}
}
}
}
}
},
),
},
),
error: (error, stackTrace) {
return FailureWidget(
title: 'Could not load chat',
@@ -118,9 +117,7 @@ class ChatArchiveDetailScreen extends HookConsumerWidget {
onRetry: () => ref.refresh(readArchivedChatProvider(fileName)),
);
},
loading: () => const Bone.multiText(
lines: 15,
),
loading: () => const Bone.multiText(lines: 15),
),
),
);