Browse Source

style(agent_view): 优化输入框的边框样式和交互状态

添加聚焦状态边框样式并根据暗黑模式调整颜色,同时移除默认填充背景
weicu
lxm 1 year ago
parent
commit
375a7e7cf0
  1. 9
      lib/modules/agent/views/agent_view.dart

9
lib/modules/agent/views/agent_view.dart

@ -384,7 +384,16 @@ class AgentView extends StatelessWidget {
color: Colors.grey[500], color: Colors.grey[500],
fontSize: 15, fontSize: 15,
), ),
filled: false,
border: InputBorder.none, border: InputBorder.none,
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color: isDarkMode
? Colors.grey[800]!
: Colors.grey[200]!,
width: 1.0,
),
),
contentPadding: EdgeInsets.symmetric( contentPadding: EdgeInsets.symmetric(
vertical: isImageActive ? 12 : 0), vertical: isImageActive ? 12 : 0),
), ),

Loading…
Cancel
Save