fix: web 端会员页崩溃(dart:io 不可用)+ 嵌套 AppBar 标题重复

- member_center_page 改用 kIsWeb + defaultTargetPlatform 判断 iOS,
  删 dart:io 依赖(web 访问 Platform 抛异常导致页面灰屏)
- HomePage 移除外层 AppBar,4 个 tab 页各自持有单一标题栏

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 16:11:08 +08:00
co-authored by Claude Opus 4.7
parent 5dda43a530
commit 30de9a71ce
2 changed files with 97 additions and 95 deletions
-3
View File
@@ -21,8 +21,6 @@ class _HomePageState extends ConsumerState<HomePage> {
int _index = 0;
bool _splashShown = false;
static const _titles = ['我的形象', '我的衣橱', '穿搭方案', '会员中心'];
@override
void initState() {
super.initState();
@@ -44,7 +42,6 @@ class _HomePageState extends ConsumerState<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text(_titles[_index])),
body: IndexedStack(
index: _index,
children: const [