feat: get table
This commit is contained in:
@@ -39,8 +39,8 @@ class _CardTableWidgetState extends State<CardTableWidget> {
|
||||
|
||||
loadData() async {
|
||||
if (widget.table.status != 'available') {
|
||||
data = await ProductLocalDatasource.instance
|
||||
.getDraftOrderById(widget.table.orderId);
|
||||
// data = await ProductLocalDatasource.instance
|
||||
// .getDraftOrderById(widget.table.orderId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,9 +70,10 @@ class _CardTableWidgetState extends State<CardTableWidget> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
widget.table.status == 'available'
|
||||
? widget.table.status
|
||||
: "${widget.table.status} - ${DateTime.parse(widget.table.startTime).toFormattedTime()}",
|
||||
// widget.table.status == 'available'
|
||||
// ? widget.table.status
|
||||
// : "${widget.table.status} - ${DateTime.parse(widget.table.startTime).toFormattedTime()}",
|
||||
"",
|
||||
style: TextStyle(
|
||||
color: AppColors.black,
|
||||
fontSize: 24,
|
||||
|
||||
Reference in New Issue
Block a user