73 lines
2.0 KiB
Dart
Raw Normal View History

2025-08-19 16:05:42 +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-19 16:05:42 +07:00
import '../../../router/app_router.gr.dart';
2025-08-12 21:20:20 +07:00
import 'divider.dart';
import 'profile_tile.dart';
class ProfileSupport extends StatelessWidget {
const ProfileSupport({super.key});
@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.support,
2025-08-12 21:20:20 +07:00
style: AppStyle.xl.copyWith(
fontSize: 18,
fontWeight: FontWeight.bold,
color: AppColor.textPrimary,
),
),
),
ProfileTile(
icon: Icons.help_outline,
2025-08-20 13:52:49 +07:00
title: context.lang.help_center,
subtitle: context.lang.help_center_desc,
2025-08-19 16:05:42 +07:00
onTap: () => context.router.push(ComingSoonRoute()),
2025-08-12 21:20:20 +07:00
),
2025-08-19 16:05:42 +07:00
// ProfileDivider(),
2025-08-12 21:20:20 +07:00
2025-08-19 16:05:42 +07:00
// ProfileTile(
// icon: Icons.feedback_outlined,
// title: 'Send Feedback',
// subtitle: 'Help us improve the app',
// onTap: () {
// // Open feedback form
// },
// ),
2025-08-12 21:20:20 +07:00
ProfileDivider(),
ProfileTile(
icon: Icons.info_outline,
2025-08-20 13:52:49 +07:00
title: context.lang.about,
subtitle: context.lang.about_desc,
2025-08-19 16:05:42 +07:00
onTap: () => context.router.push(AboutAppRoute()),
2025-08-12 21:20:20 +07:00
),
],
),
);
}
}