diff --git a/lib/views/profile/components/bug_list_page.dart b/lib/views/profile/components/bug_list_page.dart index 318630b..4b72f2f 100644 --- a/lib/views/profile/components/bug_list_page.dart +++ b/lib/views/profile/components/bug_list_page.dart @@ -133,7 +133,7 @@ class _BugListPageState extends State { }, { - 'id': 8, + 'id': 9, 'title': '软件黑屏', 'description': '未读取到历史记录', 'severity': 'low', @@ -148,7 +148,7 @@ class _BugListPageState extends State { }, { - 'id': 9, + 'id': 10, 'title': '桌面卡片 天气温度显示999', 'description': '未读取到历史记录', 'severity': 'low', @@ -162,7 +162,7 @@ class _BugListPageState extends State { 'reproductionExpanded': false, // 复现步骤展开状态 }, { - 'id': 9, + 'id': 11, 'title': '桌面卡片 设置页面闪白屏', 'description': '未读取到历史记录', 'severity': 'low', @@ -296,8 +296,11 @@ class _BugListPageState extends State { controller: _scrollController, physics: const AlwaysScrollableScrollPhysics(), padding: const EdgeInsets.all(16), - itemCount: _bugs.length, + itemCount: _bugs.length + 1, itemBuilder: (context, index) { + if (index == _bugs.length) { + return _buildFooter(); + } final bug = _bugs[index]; return _buildBugItem(bug); }, @@ -355,6 +358,35 @@ class _BugListPageState extends State { ); } + Widget _buildFooter() { + return Container( + padding: const EdgeInsets.symmetric(vertical: 24), + child: Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container(width: 40, height: 1, color: Colors.grey[300]), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Text( + '已经到底了', + style: TextStyle(fontSize: 13, color: Colors.grey[500]), + ), + ), + Container(width: 40, height: 1, color: Colors.grey[300]), + ], + ), + const SizedBox(height: 8), + Text( + '共 ${_bugs.length} 个已知问题', + style: TextStyle(fontSize: 12, color: Colors.grey[400]), + ), + ], + ), + ); + } + Widget _buildBugItem(Map bug) { final bool isExpanded = bug['expanded'] ?? false;