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