Dialog improvements (#308)

This commit is contained in:
Oliver 2023-04-10 23:28:02 +10:00 committed by GitHub
parent 26b86a2194
commit cb5c292326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 10 deletions

View file

@ -293,6 +293,8 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
L10().stockItemDelete,
L10().stockItemDeleteConfirm,
icon: FontAwesomeIcons.trashCan,
color: Colors.red,
acceptText: L10().delete,
onAccept: () async {
final bool result = await widget.item.delete();