feat: update profile

This commit is contained in:
efrilm
2025-08-13 00:02:35 +07:00
parent 138640d47d
commit 644531500d
4 changed files with 367 additions and 116 deletions
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import '../../../../common/theme/theme.dart';
import 'divider.dart';
import 'profile_switch_tile.dart';
import 'profile_tile.dart';
class ProfileAppSetting extends StatefulWidget {
@@ -13,8 +12,8 @@ class ProfileAppSetting extends StatefulWidget {
}
class _ProfileAppSettingState extends State<ProfileAppSetting> {
bool _notificationsEnabled = true;
bool _darkModeEnabled = false;
// bool _notificationsEnabled = true;
// bool _darkModeEnabled = false;
@override
Widget build(BuildContext context) {
@@ -46,34 +45,32 @@ class _ProfileAppSettingState extends State<ProfileAppSetting> {
),
),
ProfileSwitchTile(
icon: Icons.notifications_outlined,
title: 'Notifications',
subtitle: 'Receive app notifications',
value: _notificationsEnabled,
onChanged: (value) {
setState(() {
_notificationsEnabled = value;
});
},
),
// ProfileSwitchTile(
// icon: Icons.notifications_outlined,
// title: 'Notifications',
// subtitle: 'Receive app notifications',
// value: _notificationsEnabled,
// onChanged: (value) {
// setState(() {
// _notificationsEnabled = value;
// });
// },
// ),
ProfileDivider(),
ProfileSwitchTile(
icon: Icons.dark_mode_outlined,
title: 'Dark Mode',
subtitle: 'Switch to dark theme',
value: _darkModeEnabled,
onChanged: (value) {
setState(() {
_darkModeEnabled = value;
});
},
),
ProfileDivider(),
// ProfileDivider(),
// ProfileSwitchTile(
// icon: Icons.dark_mode_outlined,
// title: 'Dark Mode',
// subtitle: 'Switch to dark theme',
// value: _darkModeEnabled,
// onChanged: (value) {
// setState(() {
// _darkModeEnabled = value;
// });
// },
// ),
// ProfileDivider(),
ProfileTile(
icon: Icons.language_outlined,
title: 'Language',