This commit is contained in:
mmc
2026-02-25 18:39:09 +08:00
parent 30ef6c8e40
commit 27717cbba2
3 changed files with 15 additions and 361 deletions

View File

@@ -122,8 +122,8 @@ class _BottomOperationPanelState extends State<BottomOperationPanel> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
_buildActionButton(Icons.delete_outline, '删除', false, () {}),
_buildActionButton(Icons.undo_outlined, '撤回', false, () {}),
_buildActionButton(Icons.delete_outline, '删除', true, () {}),
_buildActionButton(Icons.undo_outlined, '撤回', true, () {}),
_buildActionButton(Icons.check_outlined, '完成', true, () {
// 触发完成按钮回调,通知外部关闭面板
widget.onComplete.call();
@@ -199,18 +199,19 @@ class _BottomOperationPanelState extends State<BottomOperationPanel> {
onTap: isEnabled ? onTap : null,
child: Column(
children: [
Icon(
icon,
color: isEnabled ? Colors.black87 : Colors.grey[400],
size: 32,
Container(
width: 50,
height: 50,
decoration: BoxDecoration(
color: isEnabled ? Colors.blue : Colors.grey[300],
shape: BoxShape.circle,
),
child: Icon(icon, color: Colors.white),
),
const SizedBox(height: 8),
const SizedBox(height: 6),
Text(
label,
style: TextStyle(
color: isEnabled ? Colors.black87 : Colors.grey[400],
fontSize: 16,
),
style: TextStyle(color: isEnabled ? Colors.black : Colors.grey),
),
],
),