From ab2fc1013b123fae4560fccefb441531e131fa70 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 12 Jan 2026 00:08:51 +0800 Subject: [PATCH] :lipstick: Scrollable alert --- lib/widgets/alert.dart | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/lib/widgets/alert.dart b/lib/widgets/alert.dart index 5bafaff2..8dab526f 100644 --- a/lib/widgets/alert.dart +++ b/lib/widgets/alert.dart @@ -259,24 +259,26 @@ void showErrorAlert(dynamic err, {IconData? icon}) { title: null, titlePadding: EdgeInsets.zero, contentPadding: const EdgeInsets.fromLTRB(24, 24, 24, 0), - content: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Icon( - icon ?? Icons.error_outline_rounded, - size: 48, - color: Theme.of(context).colorScheme.error, - ), - const Gap(16), - Text( - 'somethingWentWrong'.tr(), - style: Theme.of(context).textTheme.titleLarge, - ), - const Gap(8), - Text(text), - const Gap(8), - ], + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon( + icon ?? Icons.error_outline_rounded, + size: 48, + color: Theme.of(context).colorScheme.error, + ), + const Gap(16), + Text( + 'somethingWentWrong'.tr(), + style: Theme.of(context).textTheme.titleLarge, + ), + const Gap(8), + SelectableText(text), + const Gap(8), + ], + ), ), actions: [ TextButton(