fix: v1.1.9+11 - 修复消息页面和我的页面点击无反应(双Scaffold嵌套)
问题原因: ActivityListScreen 在展示 MessagesScreen/ProfileScreen 时, 外层 Scaffold 的 AppBar 和 FloatingActionButton 仍然显示, 导致双层 Scaffold 嵌套,页面交互被遮挡/挤压。 修复方案: 当 _selectedIndex 为消息(3)或我的(4)时, 外层 Scaffold 不渲染 AppBar 和 FAB, 让内嵌的 MessagesScreen/ProfileScreen 自己的 Scaffold 正常工作。
This commit is contained in:
parent
e9505b37d1
commit
8ebc6e1928
@ -119,6 +119,14 @@ class _ActivityListScreenState extends State<ActivityListScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// When showing messages or profile, use their own Scaffold directly
|
||||
if (_selectedIndex == 3 || _selectedIndex == 4) {
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xFFFFF8F0),
|
||||
body: _buildBody(),
|
||||
bottomNavigationBar: _buildBottomNavigationBar(),
|
||||
);
|
||||
}
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xFFFFF8F0),
|
||||
appBar: AppBar(
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
name: banxiang_app
|
||||
description: 伴享
|
||||
version: 1.1.8+10
|
||||
version: 1.1.9+11
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user