This commit is contained in:
JMARyA 2024-09-22 22:15:43 +02:00
parent 1c4c0dbc69
commit a1ac1ff893
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 21 additions and 12 deletions

View file

@ -4,6 +4,8 @@ import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'supply.dart';
// todo : show est. time remaining until inventory gets empty (based on demand)
class ItemView extends StatefulWidget {
final Item item;

View file

@ -37,6 +37,13 @@ class TransactionCard extends StatelessWidget {
},
));
},
onLongPress: () {
Navigator.of(context).push(MaterialPageRoute(
builder: (context) {
return TransactionPage(t);
},
));
},
child: Card(
color: t.expired ? Colors.red[100] : Colors.black,
margin: const EdgeInsets.symmetric(vertical: 8, horizontal: 16),