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,29 +112,43 @@ 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: Card(
color: Theme.of(context).highlightColor,
child: Column( child: Column(
children: [ children: [
Text(
name,
style: TextStyle(
decoration: TextDecoration.underline,
fontSize: 16
),
),
Row( Row(
children: [ children: [
Spacer(
flex: 3,
),
Text(leftText), Text(leftText),
Spacer(), Spacer(
Center( flex: 1,
child: Column( ),
children: [
Text(name),
Text(middleText), Text(middleText),
], Spacer(
flex: 1,
), ),
),
Spacer(),
Text(rightText), Text(rightText),
Spacer(
flex: 3,
),
], ],
), ),
], ],
), ),
), ),
),
); );
} }
} }