update
This commit is contained in:
parent
1c4c0dbc69
commit
a1ac1ff893
3 changed files with 21 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue