changed dialog layout

This commit is contained in:
Thibault Deckers 2020-09-06 18:41:58 +09:00
parent d0af2896ac
commit 0c06bf8443

View file

@ -24,11 +24,18 @@ class AvesDialog extends AlertDialog {
// to size itself to the content intrinsic size, // to size itself to the content intrinsic size,
// but the `ListView` viewport does not have one // but the `ListView` viewport does not have one
width: 1, width: 1,
child: DecoratedBox(
decoration: BoxDecoration(
border: Border(
bottom: Divider.createBorderSide(context, width: 1),
),
),
child: ListView( child: ListView(
shrinkWrap: true, shrinkWrap: true,
children: scrollableContent, children: scrollableContent,
), ),
), ),
),
) )
: content, : content,
contentPadding: scrollableContent != null ? EdgeInsets.zero : EdgeInsets.fromLTRB(24, 20, 24, 24), contentPadding: scrollableContent != null ? EdgeInsets.zero : EdgeInsets.fromLTRB(24, 20, 24, 24),
@ -47,10 +54,14 @@ class DialogTitle extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return Container(
children: [ alignment: Alignment.center,
Padding(
padding: const EdgeInsets.symmetric(vertical: 20), padding: const EdgeInsets.symmetric(vertical: 20),
decoration: BoxDecoration(
border: Border(
bottom: Divider.createBorderSide(context, width: 1),
),
),
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
@ -58,9 +69,6 @@ class DialogTitle extends StatelessWidget {
fontFamily: 'Concourse Caps', fontFamily: 'Concourse Caps',
), ),
), ),
),
Divider(height: 1),
],
); );
} }
} }