feat: lang
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:line_icons/line_icons.dart';
|
||||
|
||||
import '../../../../common/extension/extension.dart';
|
||||
import '../../../../common/theme/theme.dart';
|
||||
import '../../../../domain/analytic/analytic.dart';
|
||||
import '../../../components/spacer/spacer.dart';
|
||||
@@ -21,30 +22,30 @@ class HomeStats extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
HomeTitle(title: 'Ringkasan Hari Ini'),
|
||||
HomeTitle(title: context.lang.today_summary),
|
||||
const SpaceHeight(20),
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: HomeStatsTile(
|
||||
title: 'Pesanan',
|
||||
title: context.lang.order,
|
||||
value: overview.totalOrders.toString(),
|
||||
icon: Icons.receipt_long_rounded,
|
||||
color: AppColor.info,
|
||||
subtitle: 'Hari ini',
|
||||
subtitle: context.lang.today,
|
||||
),
|
||||
),
|
||||
|
||||
const SpaceWidth(16),
|
||||
Expanded(
|
||||
child: HomeStatsTile(
|
||||
title: 'Pelanggan Baru',
|
||||
title: context.lang.new_customer,
|
||||
value: overview.totalCustomers.toString(),
|
||||
icon: Icons.person_add_outlined,
|
||||
color: AppColor.primary,
|
||||
subtitle: overview.totalCustomers < 1
|
||||
? 'Hari ini'
|
||||
: 'bertambah',
|
||||
? context.lang.today
|
||||
: context.lang.increase,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -54,21 +55,21 @@ class HomeStats extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: HomeStatsTile(
|
||||
title: 'Refund',
|
||||
title: context.lang.refund,
|
||||
value: overview.refundedOrders.toString(),
|
||||
icon: LineIcons.alternateExchange,
|
||||
color: AppColor.warning,
|
||||
subtitle: 'Hari ini',
|
||||
subtitle: context.lang.today,
|
||||
),
|
||||
),
|
||||
const SpaceWidth(16),
|
||||
Expanded(
|
||||
child: HomeStatsTile(
|
||||
title: 'Void',
|
||||
title: context.lang.void_text,
|
||||
value: overview.voidedOrders.toString(),
|
||||
icon: Icons.cancel_rounded,
|
||||
color: AppColor.error,
|
||||
subtitle: 'Hari ini',
|
||||
subtitle: context.lang.today,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user