hesabixArc/hesabixUI/hesabix_ui/lib/pages/business/invoice_page.dart

59 lines
1.6 KiB
Dart
Raw Normal View History

2025-10-04 17:17:53 +03:30
import 'package:flutter/material.dart';
import 'package:hesabix_ui/l10n/app_localizations.dart';
import '../../core/auth_store.dart';
import '../../widgets/permission/access_denied_page.dart';
class InvoicePage extends StatefulWidget {
final int businessId;
final AuthStore authStore;
const InvoicePage({
super.key,
required this.businessId,
required this.authStore,
});
@override
State<InvoicePage> createState() => _InvoicePageState();
}
class _InvoicePageState extends State<InvoicePage> {
@override
Widget build(BuildContext context) {
final t = AppLocalizations.of(context);
if (!widget.authStore.canReadSection('invoices')) {
return AccessDeniedPage(message: t.accessDenied);
}
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.receipt,
size: 80,
color: Theme.of(context).colorScheme.primary.withOpacity(0.6),
),
const SizedBox(height: 24),
Text(
t.invoice,
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
),
),
const SizedBox(height: 16),
Text(
'صفحه فاکتور در حال توسعه است',
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.5),
),
),
],
),
),
);
}
}