66 lines
1.7 KiB
Dart
Raw Normal View History

2025-08-12 17:36:41 +07:00
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
2025-08-12 21:20:20 +07:00
import '../../../common/theme/theme.dart';
import '../../components/spacer/spacer.dart';
import 'widgets/account_info.dart';
import 'widgets/app_setting.dart';
import 'widgets/business_setting.dart';
import 'widgets/danger_zone.dart';
import 'widgets/header.dart';
import 'widgets/support.dart';
2025-08-12 17:36:41 +07:00
@RoutePage()
2025-08-12 21:20:20 +07:00
class ProfilePage extends StatefulWidget {
2025-08-12 17:36:41 +07:00
const ProfilePage({super.key});
2025-08-12 21:20:20 +07:00
@override
State<ProfilePage> createState() => _ProfilePageState();
}
class _ProfilePageState extends State<ProfilePage> {
2025-08-12 17:36:41 +07:00
@override
Widget build(BuildContext context) {
2025-08-12 21:20:20 +07:00
return Scaffold(
backgroundColor: AppColor.background,
appBar: AppBar(
title: Text(
'Profile',
style: AppStyle.xxl.copyWith(
color: AppColor.textWhite,
fontWeight: FontWeight.w600,
),
),
backgroundColor: AppColor.primary,
elevation: 0,
actions: [
IconButton(
icon: const Icon(Icons.edit, color: AppColor.textWhite),
onPressed: () {
// Navigate to edit profile
},
),
],
),
body: SingleChildScrollView(
child: Column(
children: [
ProfileHeader(),
const SpaceHeight(20),
ProfileAccountInfo(),
const SpaceHeight(12),
ProfileBusinessSetting(),
const SpaceHeight(12),
ProfileAppSetting(),
const SpaceHeight(12),
ProfileSupport(),
const SpaceHeight(12),
ProfileDangerZone(),
const SpaceHeight(30),
],
),
),
);
2025-08-12 17:36:41 +07:00
}
}