forked from mgl_crew/Mitgliederladen
main #1
1 changed files with 10 additions and 3 deletions
|
@ -31,6 +31,7 @@ class Finance extends StatefulWidget {
|
||||||
State<Finance> createState() => _Finance();
|
State<Finance> createState() => _Finance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sample data
|
||||||
class _Finance extends State<Finance> {
|
class _Finance extends State<Finance> {
|
||||||
final List<Transaction> transactions = [
|
final List<Transaction> transactions = [
|
||||||
Transaction(Art.monatlBeitrag, 0, now, ''),
|
Transaction(Art.monatlBeitrag, 0, now, ''),
|
||||||
|
@ -51,6 +52,11 @@ class _Finance extends State<Finance> {
|
||||||
Transaction(Art.monatlBeitrag, 0, now, ''),
|
Transaction(Art.monatlBeitrag, 0, now, ''),
|
||||||
Transaction(Art.aufladung, 2042, now, ''),
|
Transaction(Art.aufladung, 2042, now, ''),
|
||||||
Transaction(Art.einkauf, -2442, now.subtract(const Duration(days: 2)), ''),
|
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)),
|
Transaction(Art.korrektur, 2332, now.subtract(const Duration(hours: 5)),
|
||||||
'Korrektur des Warenkorbs')
|
'Korrektur des Warenkorbs')
|
||||||
];
|
];
|
||||||
|
@ -122,9 +128,10 @@ class _Finance extends State<Finance> {
|
||||||
'${transactions[index].art}: ${transactions[index].betrag / 100}€'),
|
'${transactions[index].art}: ${transactions[index].betrag / 100}€'),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Expand(
|
if (transactions[index].beschreibung != '')
|
||||||
expand: transactions[index].elevated,
|
Expand(
|
||||||
child: Text(transactions[index].beschreibung))
|
expand: transactions[index].elevated,
|
||||||
|
child: Text(transactions[index].beschreibung))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue