87 lines
2.5 KiB
Dart
Raw Normal View History

2025-08-13 00:15:53 +07:00
import 'package:auto_route/auto_route.dart';
2025-08-12 21:20:20 +07:00
import 'package:flutter/material.dart';
2025-08-20 13:52:49 +07:00
import '../../../../common/extension/extension.dart';
2025-08-12 21:20:20 +07:00
import '../../../../common/theme/theme.dart';
2025-08-13 00:15:53 +07:00
import '../../../router/app_router.gr.dart';
2025-08-12 21:20:20 +07:00
import 'profile_tile.dart';
class ProfileAppSetting extends StatefulWidget {
const ProfileAppSetting({super.key});
@override
State<ProfileAppSetting> createState() => _ProfileAppSettingState();
}
class _ProfileAppSettingState extends State<ProfileAppSetting> {
2025-08-13 00:02:35 +07:00
// bool _notificationsEnabled = true;
// bool _darkModeEnabled = false;
2025-08-12 21:20:20 +07:00
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(horizontal: AppValue.margin),
decoration: BoxDecoration(
color: AppColor.surface,
borderRadius: BorderRadius.circular(12),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.05),
blurRadius: 10,
offset: const Offset(0, 2),
),
],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: EdgeInsets.all(16),
child: Text(
2025-08-20 13:52:49 +07:00
context.lang.app_settings,
2025-08-12 21:20:20 +07:00
style: AppStyle.xl.copyWith(
fontSize: 18,
fontWeight: FontWeight.bold,
color: AppColor.textPrimary,
),
),
),
2025-08-13 00:02:35 +07:00
// ProfileSwitchTile(
// icon: Icons.notifications_outlined,
// title: 'Notifications',
// subtitle: 'Receive app notifications',
// value: _notificationsEnabled,
// onChanged: (value) {
// setState(() {
// _notificationsEnabled = value;
// });
// },
// ),
2025-08-12 21:20:20 +07:00
2025-08-13 00:02:35 +07:00
// ProfileDivider(),
2025-08-12 21:20:20 +07:00
2025-08-13 00:02:35 +07:00
// ProfileSwitchTile(
// icon: Icons.dark_mode_outlined,
// title: 'Dark Mode',
// subtitle: 'Switch to dark theme',
// value: _darkModeEnabled,
// onChanged: (value) {
// setState(() {
// _darkModeEnabled = value;
// });
// },
// ),
// ProfileDivider(),
2025-08-12 21:20:20 +07:00
ProfileTile(
icon: Icons.language_outlined,
2025-08-20 13:52:49 +07:00
title: context.lang.language,
subtitle: context.lang.language_desc,
2025-08-13 00:15:53 +07:00
onTap: () => context.router.push(LanguageRoute()),
2025-08-12 21:20:20 +07:00
),
],
),
);
}
}