const constructure

This commit is contained in:
Efril
2026-03-01 20:02:12 +07:00
parent 5058f99fe0
commit e625bd3d2a
142 changed files with 817 additions and 760 deletions
@@ -41,7 +41,7 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
children: [
Expanded(
child: SingleChildScrollView(
padding: EdgeInsets.all(16),
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -52,10 +52,10 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
color: AppColor.textPrimary,
),
),
SpaceHeight(16),
const SpaceHeight(16),
Container(
width: context.deviceWidth,
padding: EdgeInsets.all(16),
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: AppColor.white,
borderRadius: BorderRadius.circular(16),
@@ -70,16 +70,17 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
color: AppColor.primary,
),
),
SpaceHeight(8),
const SpaceHeight(8),
GridView.builder(
shrinkWrap: true,
physics: NeverScrollableScrollPhysics(),
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
crossAxisSpacing: 12,
mainAxisSpacing: 12,
childAspectRatio: 2.5,
),
physics: const NeverScrollableScrollPhysics(),
gridDelegate:
const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
crossAxisSpacing: 12,
mainAxisSpacing: 12,
childAspectRatio: 2.5,
),
itemCount: refundReasons.length,
itemBuilder: (context, index) {
final reason = refundReasons[index];
@@ -99,7 +100,7 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
),
if (widget.state.refundReason != null &&
widget.state.refundReason!.value == 'Lainnya') ...[
SpaceHeight(8),
const SpaceHeight(8),
AppTextFormField(
label: 'Masukkan Alasan',
controller: reasonController,
@@ -122,7 +123,7 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
Widget _buildBottom() {
return Container(
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(color: AppColor.white),
decoration: const BoxDecoration(color: AppColor.white),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -145,9 +146,9 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
),
],
),
SpaceHeight(8),
DashedDivider(color: AppColor.border),
SpaceHeight(16),
const SpaceHeight(8),
const DashedDivider(color: AppColor.border),
const SpaceHeight(16),
Row(
children: [
Expanded(
@@ -156,7 +157,7 @@ class _RefundRightPanelState extends State<RefundRightPanel> {
label: 'Batal',
),
),
SpaceWidth(16),
const SpaceWidth(16),
Expanded(
child: AppElevatedButton.filled(
onPressed: () {