import 'package:flutter/material.dart'; import 'package:im_app/core/foundation/config.dart'; /// 关于本应用页 /// /// 对应 Gitea issue #13 class AboutPage extends StatelessWidget { const AboutPage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('关于')), body: ListView( padding: const EdgeInsets.all(16), children: [ // App 图标 + 名称 const SizedBox(height: 24), Center( child: Column( children: [ Container( width: 72, height: 72, decoration: BoxDecoration( color: Theme.of(context).colorScheme.primary, borderRadius: BorderRadius.circular(16), ), child: const Icon(Icons.chat_bubble, color: Colors.white, size: 40), ), const SizedBox(height: 12), Text( 'IM', style: Theme.of(context).textTheme.titleLarge?.copyWith( fontWeight: FontWeight.w700, ), ), const SizedBox(height: 4), Text( '版本 ${AppConfig.appVersion}', style: Theme.of(context).textTheme.bodySmall?.copyWith( color: Colors.grey, ), ), ], ), ), const SizedBox(height: 32), // 链接列表 Card( child: Column( children: [ ListTile( leading: const Icon(Icons.description_outlined), title: const Text('服务条款'), trailing: const Icon(Icons.chevron_right, color: Colors.grey), onTap: () { // TODO: 跳转服务条款页面或 WebView }, ), const Divider(height: 1, indent: 52), ListTile( leading: const Icon(Icons.privacy_tip_outlined), title: const Text('隐私政策'), trailing: const Icon(Icons.chevron_right, color: Colors.grey), onTap: () { // TODO: 跳转隐私政策页面或 WebView }, ), ], ), ), const SizedBox(height: 32), Center( child: Text( '© 2025 IM. All rights reserved.', style: Theme.of(context).textTheme.bodySmall?.copyWith( color: Colors.grey, ), ), ), ], ), ); } }