feat: lang

This commit is contained in:
efrilm
2025-08-20 13:52:49 +07:00
parent f07d07b3a8
commit 5a83bc4049
53 changed files with 3386 additions and 721 deletions
@@ -1,6 +1,7 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import '../../../../common/extension/extension.dart';
import '../../../../common/theme/theme.dart';
import '../../../router/app_router.gr.dart';
import 'divider.dart';
@@ -30,7 +31,7 @@ class ProfileBusinessSetting extends StatelessWidget {
Padding(
padding: EdgeInsets.all(16),
child: Text(
'Business Settings',
context.lang.business_settings,
style: AppStyle.xl.copyWith(
fontSize: 18,
fontWeight: FontWeight.bold,
@@ -41,8 +42,8 @@ class ProfileBusinessSetting extends StatelessWidget {
ProfileTile(
icon: Icons.business_outlined,
title: 'Outlet Information',
subtitle: 'Manage your Outlet details',
title: context.lang.outlet_information,
subtitle: context.lang.outlet_informatio_desc,
onTap: () => context.router.push(OutletInformationRoute()),
),
@@ -50,8 +51,8 @@ class ProfileBusinessSetting extends StatelessWidget {
ProfileTile(
icon: Icons.people_outline,
title: 'Staff Management',
subtitle: 'Manage employees and permissions',
title: context.lang.staff_management,
subtitle: context.lang.staff_management_desc,
onTap: () => context.router.push(ComingSoonRoute()),
),
@@ -59,16 +60,16 @@ class ProfileBusinessSetting extends StatelessWidget {
ProfileTile(
icon: Icons.inventory_2_outlined,
title: 'Product',
subtitle: 'Manage your products',
title: context.lang.products,
subtitle: context.lang.manage_your_products,
onTap: () => context.router.push(ProductRoute()),
),
ProfileDivider(),
ProfileTile(
icon: Icons.download_outlined,
title: 'Download Report',
subtitle: 'Download your sales or inventory report',
title: context.lang.download_report,
subtitle: context.lang.download_report_desc,
onTap: () => context.router.push(DownloadReportRoute()),
),
],