Style the report a little better. Still need to get the row's middle text properly aligned with the column header somehow, as if everything were in a grid.

This commit is contained in:
Hyperling 2025-02-21 08:30:54 -07:00
parent 991eea4d54
commit 992195b9a0

View File

@ -112,27 +112,41 @@ class SummaryCard extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Card( return Card(
color: Theme.of(context).cardColor,
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Column( child: Card(
children: [ color: Theme.of(context).highlightColor,
Row( child: Column(
children: [ children: [
Text(leftText), Text(
Spacer(), name,
Center( style: TextStyle(
child: Column( decoration: TextDecoration.underline,
children: [ fontSize: 16
Text(name),
Text(middleText),
],
),
), ),
Spacer(), ),
Text(rightText), Row(
], children: [
), Spacer(
], flex: 3,
),
Text(leftText),
Spacer(
flex: 1,
),
Text(middleText),
Spacer(
flex: 1,
),
Text(rightText),
Spacer(
flex: 3,
),
],
),
],
),
), ),
), ),
); );