const constructure
This commit is contained in:
@@ -15,14 +15,14 @@ class RefundLeftPanel extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(color: AppColor.white),
|
||||
decoration: const BoxDecoration(color: AppColor.white),
|
||||
child: Column(
|
||||
children: [
|
||||
PageTitle(title: 'Refund Pesanan', subtitle: state.order.orderNumber),
|
||||
_buildInfo(),
|
||||
Expanded(
|
||||
child: ListView.builder(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
itemCount: state.order.orderItems.length,
|
||||
itemBuilder: (context, index) {
|
||||
return _buildOrderItem(state.order.orderItems[index]);
|
||||
@@ -37,7 +37,7 @@ class RefundLeftPanel extends StatelessWidget {
|
||||
|
||||
Widget _buildOrderItem(OrderItem item) {
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 12),
|
||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
@@ -80,7 +80,7 @@ class RefundLeftPanel extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
if ((item.paidQuantity) > 1) ...[
|
||||
SpaceHeight(6),
|
||||
const SpaceHeight(6),
|
||||
Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: Container(
|
||||
@@ -132,7 +132,7 @@ class RefundLeftPanel extends StatelessWidget {
|
||||
Container _buildInfo() {
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
decoration: BoxDecoration(
|
||||
decoration: const BoxDecoration(
|
||||
border: Border(bottom: BorderSide(color: AppColor.border)),
|
||||
),
|
||||
child: Column(
|
||||
@@ -177,8 +177,8 @@ class RefundLeftPanel extends StatelessWidget {
|
||||
|
||||
Container _buildFooterSummary() {
|
||||
return Container(
|
||||
padding: EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: const BoxDecoration(
|
||||
border: Border(top: BorderSide(color: AppColor.border)),
|
||||
),
|
||||
child: Column(
|
||||
@@ -187,19 +187,19 @@ class RefundLeftPanel extends StatelessWidget {
|
||||
title: 'Subtotal',
|
||||
value: state.order.subtotal.currencyFormatRpV2,
|
||||
),
|
||||
SpaceHeight(4),
|
||||
const SpaceHeight(4),
|
||||
_buildSummaryItem(
|
||||
title: 'Pajak',
|
||||
value: state.order.taxAmount.currencyFormatRpV2,
|
||||
),
|
||||
SpaceHeight(4),
|
||||
const SpaceHeight(4),
|
||||
_buildSummaryItem(
|
||||
title: 'Diskon',
|
||||
value: state.order.discountAmount.currencyFormatRpV2,
|
||||
),
|
||||
SpaceHeight(8),
|
||||
DashedDivider(color: AppColor.border),
|
||||
SpaceHeight(8),
|
||||
const SpaceHeight(8),
|
||||
const DashedDivider(color: AppColor.border),
|
||||
const SpaceHeight(8),
|
||||
_buildSummaryItem(
|
||||
title: 'Total Dibayar',
|
||||
value: state.order.totalAmount.currencyFormatRpV2,
|
||||
|
||||
Reference in New Issue
Block a user