main #1

Open
fdenzer wants to merge 46 commits from mgl_crew/Mitgliederladen:main into main
Showing only changes of commit 99282eb9da - Show all commits

View file

@ -31,6 +31,7 @@ class Finance extends StatefulWidget {
State<Finance> createState() => _Finance();
}
//sample data
class _Finance extends State<Finance> {
final List<Transaction> transactions = [
Transaction(Art.monatlBeitrag, 0, now, ''),
@ -51,6 +52,11 @@ class _Finance extends State<Finance> {
Transaction(Art.monatlBeitrag, 0, now, ''),
Transaction(Art.aufladung, 2042, now, ''),
Transaction(Art.einkauf, -2442, now.subtract(const Duration(days: 2)), ''),
Transaction(Art.korrektur, 2332, now.subtract(const Duration(hours: 5)),
'Korrektur des Warenkorbs'),
Transaction(Art.monatlBeitrag, 0, now, ''),
Transaction(Art.aufladung, 2042, now, ''),
Transaction(Art.einkauf, -2442, now.subtract(const Duration(days: 2)), ''),
Transaction(Art.korrektur, 2332, now.subtract(const Duration(hours: 5)),
'Korrektur des Warenkorbs')
];
@ -122,6 +128,7 @@ class _Finance extends State<Finance> {
'${transactions[index].art}: ${transactions[index].betrag / 100}'),
],
),
if (transactions[index].beschreibung != '')
Expand(
expand: transactions[index].elevated,
child: Text(transactions[index].beschreibung))