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:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user