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