💄 Scrollable alert

This commit is contained in:
2026-01-12 00:08:51 +08:00
parent 9a41ff26ef
commit ab2fc1013b

View File

@@ -259,7 +259,8 @@ void showErrorAlert(dynamic err, {IconData? icon}) {
title: null,
titlePadding: EdgeInsets.zero,
contentPadding: const EdgeInsets.fromLTRB(24, 24, 24, 0),
content: Column(
content: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -274,10 +275,11 @@ void showErrorAlert(dynamic err, {IconData? icon}) {
style: Theme.of(context).textTheme.titleLarge,
),
const Gap(8),
Text(text),
SelectableText(text),
const Gap(8),
],
),
),
actions: [
TextButton(
onPressed: () => close(null),