From 0c06bf8443878d1325b877dc268593d9feec88ef Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Sun, 6 Sep 2020 18:41:58 +0900 Subject: [PATCH] changed dialog layout --- lib/widgets/common/aves_dialog.dart | 40 +++++++++++++++++------------ 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/lib/widgets/common/aves_dialog.dart b/lib/widgets/common/aves_dialog.dart index 2681b9101..e487b9b78 100644 --- a/lib/widgets/common/aves_dialog.dart +++ b/lib/widgets/common/aves_dialog.dart @@ -24,9 +24,16 @@ class AvesDialog extends AlertDialog { // to size itself to the content intrinsic size, // but the `ListView` viewport does not have one width: 1, - child: ListView( - shrinkWrap: true, - children: scrollableContent, + child: DecoratedBox( + decoration: BoxDecoration( + border: Border( + bottom: Divider.createBorderSide(context, width: 1), + ), + ), + child: ListView( + shrinkWrap: true, + children: scrollableContent, + ), ), ), ) @@ -47,20 +54,21 @@ class DialogTitle extends StatelessWidget { @override Widget build(BuildContext context) { - return Column( - children: [ - Padding( - padding: const EdgeInsets.symmetric(vertical: 20), - child: Text( - title, - style: TextStyle( - fontWeight: FontWeight.bold, - fontFamily: 'Concourse Caps', - ), - ), + return Container( + alignment: Alignment.center, + padding: const EdgeInsets.symmetric(vertical: 20), + decoration: BoxDecoration( + border: Border( + bottom: Divider.createBorderSide(context, width: 1), ), - Divider(height: 1), - ], + ), + child: Text( + title, + style: TextStyle( + fontWeight: FontWeight.bold, + fontFamily: 'Concourse Caps', + ), + ), ); } }