bug fix on batches for zesa
This commit is contained in:
@@ -141,21 +141,47 @@ class _TransactionItemWidgetState extends State<TransactionItemWidget> {
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
widget.transaction['createdAt'] != null
|
||||
? timeago.format(
|
||||
DateTime.parse(
|
||||
widget.transaction['createdAt'],
|
||||
),
|
||||
)
|
||||
: '',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: isDark
|
||||
? Colors.white54
|
||||
: Colors.grey.shade500,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
if (widget.transaction['billProductName'] !=
|
||||
null) ...[
|
||||
Text(
|
||||
widget.transaction['billProductName'],
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: isDark
|
||||
? Colors.white54
|
||||
: Colors.grey.shade500,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
' • ',
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: isDark
|
||||
? Colors.white24
|
||||
: Colors.grey.shade400,
|
||||
),
|
||||
),
|
||||
],
|
||||
Text(
|
||||
widget.transaction['createdAt'] != null
|
||||
? timeago.format(
|
||||
DateTime.parse(
|
||||
widget.transaction['createdAt'],
|
||||
),
|
||||
)
|
||||
: '',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: isDark
|
||||
? Colors.white54
|
||||
: Colors.grey.shade500,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user