const constructure
This commit is contained in:
@@ -36,8 +36,8 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: const BoxDecoration(
|
||||
border: Border(
|
||||
bottom: BorderSide(width: 1, color: AppColor.border),
|
||||
),
|
||||
@@ -48,8 +48,12 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.receipt_long, color: AppColor.primary, size: 24),
|
||||
SpaceWidth(12),
|
||||
const Icon(
|
||||
Icons.receipt_long,
|
||||
color: AppColor.primary,
|
||||
size: 24,
|
||||
),
|
||||
const SpaceWidth(12),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -71,7 +75,10 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 6),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12,
|
||||
vertical: 6,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: _getStatusColor(
|
||||
widget.state.order.status,
|
||||
@@ -95,18 +102,18 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
thumbVisibility: true,
|
||||
child: SingleChildScrollView(
|
||||
controller: _scrollController,
|
||||
padding: EdgeInsets.all(20),
|
||||
padding: const EdgeInsets.all(20),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Icon(
|
||||
const Icon(
|
||||
Icons.shopping_cart,
|
||||
color: AppColor.primary,
|
||||
size: 20,
|
||||
),
|
||||
SpaceWidth(8),
|
||||
const SpaceWidth(8),
|
||||
Text(
|
||||
'Produk Pesanan (${widget.state.pendingItems.length})',
|
||||
style: AppStyle.lg.copyWith(
|
||||
@@ -116,7 +123,7 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
),
|
||||
],
|
||||
),
|
||||
SpaceHeight(16),
|
||||
const SpaceHeight(16),
|
||||
|
||||
...List.generate(widget.state.pendingItems.length, (index) {
|
||||
final item = widget.state.pendingItems[index];
|
||||
@@ -158,7 +165,7 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
children: [
|
||||
_buildSummaryRow(
|
||||
@@ -173,7 +180,7 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
// 'Diskon:',
|
||||
// '- ${(widget.state.order.discountAmount).currencyFormatRpV2}',
|
||||
// ),
|
||||
Divider(thickness: 1),
|
||||
const Divider(thickness: 1),
|
||||
_buildSummaryRow(
|
||||
'Total:',
|
||||
(widget.state.order.totalAmount).currencyFormatRpV2,
|
||||
@@ -203,7 +210,7 @@ class _VoidLeftPanelState extends State<VoidLeftPanel> {
|
||||
bool isVoid = false,
|
||||
}) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 4),
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user