changed dialog layout
This commit is contained in:
parent
d0af2896ac
commit
0c06bf8443
1 changed files with 24 additions and 16 deletions
|
@ -24,9 +24,16 @@ 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: ListView(
|
child: DecoratedBox(
|
||||||
shrinkWrap: true,
|
decoration: BoxDecoration(
|
||||||
children: scrollableContent,
|
border: Border(
|
||||||
|
bottom: Divider.createBorderSide(context, width: 1),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: ListView(
|
||||||
|
shrinkWrap: true,
|
||||||
|
children: scrollableContent,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -47,20 +54,21 @@ 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(
|
||||||
child: Text(
|
border: Border(
|
||||||
title,
|
bottom: Divider.createBorderSide(context, width: 1),
|
||||||
style: TextStyle(
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
fontFamily: 'Concourse Caps',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Divider(height: 1),
|
),
|
||||||
],
|
child: Text(
|
||||||
|
title,
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontFamily: 'Concourse Caps',
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue