feat: lang
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:auto_route/auto_route.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:line_icons/line_icons.dart';
|
||||
|
||||
import '../../../../common/extension/extension.dart';
|
||||
import '../../../../common/theme/theme.dart';
|
||||
import '../../../router/app_router.gr.dart';
|
||||
import 'feature_tile.dart';
|
||||
@@ -36,25 +37,25 @@ class HomeFeature extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
HomeFeatureTile(
|
||||
title: 'Penjualan',
|
||||
title: context.lang.sales,
|
||||
color: const Color(0xFF4CAF50),
|
||||
icon: LineIcons.receipt,
|
||||
onTap: () => context.router.push(SalesRoute()),
|
||||
),
|
||||
HomeFeatureTile(
|
||||
title: 'Pembelian',
|
||||
title: context.lang.purchase,
|
||||
color: const Color(0xFF2196F3),
|
||||
icon: LineIcons.shoppingCart,
|
||||
onTap: () => context.router.push(PurchaseRoute()),
|
||||
),
|
||||
HomeFeatureTile(
|
||||
title: 'Keuangan',
|
||||
title: context.lang.finance,
|
||||
color: const Color(0xFF8BC34A),
|
||||
icon: LineIcons.moneyCheck,
|
||||
onTap: () => context.router.push(FinanceRoute()),
|
||||
),
|
||||
HomeFeatureTile(
|
||||
title: 'Produk',
|
||||
title: context.lang.product,
|
||||
color: const Color(0xFFFF9800),
|
||||
icon: LineIcons.box,
|
||||
onTap: () => context.router.push(ProductAnalyticRoute()),
|
||||
@@ -66,25 +67,25 @@ class HomeFeature extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
HomeFeatureTile(
|
||||
title: 'Form',
|
||||
title: context.lang.form,
|
||||
color: const Color(0xFFE91E63),
|
||||
icon: LineIcons.fileAlt,
|
||||
onTap: () => context.router.push(DailyTasksFormRoute()),
|
||||
),
|
||||
HomeFeatureTile(
|
||||
title: 'Jadwal',
|
||||
title: context.lang.schedule,
|
||||
color: const Color(0xFF9C27B0),
|
||||
icon: LineIcons.calendar,
|
||||
onTap: () => context.router.push(ScheduleRoute()),
|
||||
),
|
||||
HomeFeatureTile(
|
||||
title: 'Inventaris',
|
||||
title: context.lang.inventory,
|
||||
color: const Color(0xFF00BCD4),
|
||||
icon: LineIcons.archive,
|
||||
onTap: () => context.router.push(InventoryRoute()),
|
||||
),
|
||||
HomeFeatureTile(
|
||||
title: 'Pelanggan',
|
||||
title: context.lang.customer,
|
||||
color: const Color(0xFFFF5722),
|
||||
icon: LineIcons.userPlus,
|
||||
onTap: () => context.router.push(CustomerRoute()),
|
||||
|
||||
Reference in New Issue
Block a user