feat: show processing duration in Kiloan and Express pricing cards
This commit is contained in:
parent
9e802c38ad
commit
e8d5818b51
|
|
@ -366,6 +366,7 @@ class _LaundryDetailScreenState extends State<LaundryDetailScreen> {
|
||||||
widget.laundry.formattedHargaFor("harian"),
|
widget.laundry.formattedHargaFor("harian"),
|
||||||
Icons.scale,
|
Icons.scale,
|
||||||
const Color(0xFF00897B),
|
const Color(0xFF00897B),
|
||||||
|
duration: widget.laundry.formattedWaktuProsesFor("harian"),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
|
|
@ -375,6 +376,7 @@ class _LaundryDetailScreenState extends State<LaundryDetailScreen> {
|
||||||
widget.laundry.formattedHargaFor("jam"),
|
widget.laundry.formattedHargaFor("jam"),
|
||||||
Icons.flash_on,
|
Icons.flash_on,
|
||||||
const Color(0xFFFF9800),
|
const Color(0xFFFF9800),
|
||||||
|
duration: widget.laundry.formattedWaktuProsesFor("jam"),
|
||||||
),
|
),
|
||||||
if (widget.laundry.hargaHarian == 0 && widget.laundry.hargaJam == 0)
|
if (widget.laundry.hargaHarian == 0 && widget.laundry.hargaJam == 0)
|
||||||
_buildPriceCard(
|
_buildPriceCard(
|
||||||
|
|
@ -382,6 +384,7 @@ class _LaundryDetailScreenState extends State<LaundryDetailScreen> {
|
||||||
widget.laundry.formattedHargaKiloan,
|
widget.laundry.formattedHargaKiloan,
|
||||||
Icons.scale,
|
Icons.scale,
|
||||||
const Color(0xFF00897B),
|
const Color(0xFF00897B),
|
||||||
|
duration: widget.laundry.formattedWaktuProsesFor("harian"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -811,8 +814,9 @@ class _LaundryDetailScreenState extends State<LaundryDetailScreen> {
|
||||||
String title,
|
String title,
|
||||||
String price,
|
String price,
|
||||||
IconData icon,
|
IconData icon,
|
||||||
Color color,
|
Color color, {
|
||||||
) {
|
String? duration,
|
||||||
|
}) {
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|
@ -839,6 +843,17 @@ class _LaundryDetailScreenState extends State<LaundryDetailScreen> {
|
||||||
title,
|
title,
|
||||||
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
style: TextStyle(fontSize: 14, color: Colors.grey[700]),
|
||||||
),
|
),
|
||||||
|
if (duration != null && duration.isNotEmpty) ...[
|
||||||
|
const SizedBox(height: 2),
|
||||||
|
Text(
|
||||||
|
'Estimasi selesai: $duration',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 12,
|
||||||
|
color: Colors.grey[600],
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
price,
|
price,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue