feat: lang
This commit is contained in:
@@ -113,7 +113,7 @@ class _DownloadReportPageState extends State<DownloadReportPage>
|
||||
pinned: true,
|
||||
elevation: 0,
|
||||
backgroundColor: AppColor.primary,
|
||||
flexibleSpace: CustomAppBar(title: 'Download Report'),
|
||||
flexibleSpace: CustomAppBar(title: context.lang.download_report),
|
||||
),
|
||||
|
||||
// Content
|
||||
@@ -134,9 +134,8 @@ class _DownloadReportPageState extends State<DownloadReportPage>
|
||||
>(
|
||||
builder: (context, state) {
|
||||
return _ReportOptionCard(
|
||||
title: 'Transaction Report',
|
||||
subtitle:
|
||||
'Export all transaction data with detailed analytics',
|
||||
title: context.lang.transaction_report,
|
||||
subtitle: context.lang.transaction_report_desc,
|
||||
icon: Icons.receipt_long_outlined,
|
||||
gradient: const [
|
||||
AppColor.primary,
|
||||
@@ -205,9 +204,8 @@ class _DownloadReportPageState extends State<DownloadReportPage>
|
||||
BlocBuilder<InventoryReportBloc, InventoryReportState>(
|
||||
builder: (context, state) {
|
||||
return _ReportOptionCard(
|
||||
title: 'Inventory Report',
|
||||
subtitle:
|
||||
'Export inventory and stock data with trends',
|
||||
title: context.lang.invetory_report,
|
||||
subtitle: context.lang.invetory_report_desc,
|
||||
icon: Icons.inventory_2_outlined,
|
||||
gradient: const [
|
||||
AppColor.secondary,
|
||||
@@ -479,7 +477,7 @@ class _ReportOptionCardState extends State<_ReportOptionCard>
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Select Date Range',
|
||||
context.lang.select_date_range,
|
||||
style: AppStyle.md.copyWith(
|
||||
color: AppColor.white,
|
||||
fontWeight: FontWeight.w600,
|
||||
@@ -489,7 +487,7 @@ class _ReportOptionCardState extends State<_ReportOptionCard>
|
||||
|
||||
// Date Range Picker Field Style
|
||||
DateRangePickerField(
|
||||
placeholder: 'Select date range',
|
||||
placeholder: context.lang.select_date_range,
|
||||
startDate: widget.startDate,
|
||||
endDate: widget.endDate,
|
||||
onChanged: widget.onDateRangeChanged,
|
||||
@@ -542,7 +540,7 @@ class _ReportOptionCardState extends State<_ReportOptionCard>
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'Download Report',
|
||||
context.lang.download_report,
|
||||
style: AppStyle.md.copyWith(
|
||||
color: widget.gradient.first,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
Reference in New Issue
Block a user