45 lines
920 B
Dart
45 lines
920 B
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
import '../theme/theme.dart';
|
||
|
|
|
||
|
|
class RefundReason {
|
||
|
|
final String value;
|
||
|
|
final IconData icon;
|
||
|
|
final Color color;
|
||
|
|
|
||
|
|
const RefundReason({
|
||
|
|
required this.value,
|
||
|
|
required this.icon,
|
||
|
|
required this.color,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
const List<RefundReason> refundReasons = [
|
||
|
|
RefundReason(
|
||
|
|
value: 'Barang Rusak',
|
||
|
|
icon: Icons.broken_image,
|
||
|
|
color: AppColor.primary,
|
||
|
|
),
|
||
|
|
RefundReason(
|
||
|
|
value: 'Salah Item',
|
||
|
|
icon: Icons.swap_horiz,
|
||
|
|
color: Colors.orange,
|
||
|
|
),
|
||
|
|
RefundReason(
|
||
|
|
value: 'Tidak Sesuai Pesanan',
|
||
|
|
icon: Icons.error_outline,
|
||
|
|
color: Colors.amber,
|
||
|
|
),
|
||
|
|
RefundReason(
|
||
|
|
value: 'Permintaan Customer',
|
||
|
|
icon: Icons.person,
|
||
|
|
color: Colors.blue,
|
||
|
|
),
|
||
|
|
RefundReason(
|
||
|
|
value: 'Kualitas Tidak Baik',
|
||
|
|
icon: Icons.thumb_down,
|
||
|
|
color: Colors.purple,
|
||
|
|
),
|
||
|
|
RefundReason(value: 'Lainnya', icon: Icons.more_horiz, color: Colors.red),
|
||
|
|
];
|