test
This commit is contained in:
@@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user