59 lines
1.6 KiB
Dart
59 lines
1.6 KiB
Dart
|
|
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 WalletPage extends StatefulWidget {
|
||
|
|
final int businessId;
|
||
|
|
final AuthStore authStore;
|
||
|
|
|
||
|
|
const WalletPage({
|
||
|
|
super.key,
|
||
|
|
required this.businessId,
|
||
|
|
required this.authStore,
|
||
|
|
});
|
||
|
|
|
||
|
|
@override
|
||
|
|
State<WalletPage> createState() => _WalletPageState();
|
||
|
|
}
|
||
|
|
|
||
|
|
class _WalletPageState extends State<WalletPage> {
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
final t = AppLocalizations.of(context);
|
||
|
|
|
||
|
|
if (!widget.authStore.canReadSection('wallet')) {
|
||
|
|
return AccessDeniedPage(message: t.accessDenied);
|
||
|
|
}
|
||
|
|
|
||
|
|
return Scaffold(
|
||
|
|
body: Center(
|
||
|
|
child: Column(
|
||
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
|
children: [
|
||
|
|
Icon(
|
||
|
|
Icons.wallet,
|
||
|
|
size: 80,
|
||
|
|
color: Theme.of(context).colorScheme.primary.withOpacity(0.6),
|
||
|
|
),
|
||
|
|
const SizedBox(height: 24),
|
||
|
|
Text(
|
||
|
|
t.wallet,
|
||
|
|
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),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|