去掉print
This commit is contained in:
@@ -133,7 +133,7 @@ class _BugListPageState extends State<BugListPage> {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'id': 8,
|
'id': 9,
|
||||||
'title': '软件黑屏',
|
'title': '软件黑屏',
|
||||||
'description': '未读取到历史记录',
|
'description': '未读取到历史记录',
|
||||||
'severity': 'low',
|
'severity': 'low',
|
||||||
@@ -148,7 +148,7 @@ class _BugListPageState extends State<BugListPage> {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
'id': 9,
|
'id': 10,
|
||||||
'title': '桌面卡片 天气温度显示999',
|
'title': '桌面卡片 天气温度显示999',
|
||||||
'description': '未读取到历史记录',
|
'description': '未读取到历史记录',
|
||||||
'severity': 'low',
|
'severity': 'low',
|
||||||
@@ -162,7 +162,7 @@ class _BugListPageState extends State<BugListPage> {
|
|||||||
'reproductionExpanded': false, // 复现步骤展开状态
|
'reproductionExpanded': false, // 复现步骤展开状态
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id': 9,
|
'id': 11,
|
||||||
'title': '桌面卡片 设置页面闪白屏',
|
'title': '桌面卡片 设置页面闪白屏',
|
||||||
'description': '未读取到历史记录',
|
'description': '未读取到历史记录',
|
||||||
'severity': 'low',
|
'severity': 'low',
|
||||||
@@ -296,8 +296,11 @@ class _BugListPageState extends State<BugListPage> {
|
|||||||
controller: _scrollController,
|
controller: _scrollController,
|
||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
itemCount: _bugs.length,
|
itemCount: _bugs.length + 1,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
|
if (index == _bugs.length) {
|
||||||
|
return _buildFooter();
|
||||||
|
}
|
||||||
final bug = _bugs[index];
|
final bug = _bugs[index];
|
||||||
return _buildBugItem(bug);
|
return _buildBugItem(bug);
|
||||||
},
|
},
|
||||||
@@ -355,6 +358,35 @@ class _BugListPageState extends State<BugListPage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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<String, dynamic> bug) {
|
Widget _buildBugItem(Map<String, dynamic> bug) {
|
||||||
final bool isExpanded = bug['expanded'] ?? false;
|
final bool isExpanded = bug['expanded'] ?? false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user