💄 Scrollable alert
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user