feat(client): 列表屏搜索前置/显示字段记忆/移动端表格切换与工具栏瘦身/退出登录归位
- 库存查询搜索框移到工具栏最前(桌面)/独占首行(移动端) - 修复入库/出库/财务「显示字段」失效:移除 minWidth 运行时强制隐藏, 用户勾选权威、minWidth 仅作首次默认;新增 ColumnPrefs 持久化记忆(四屏独立) - 移动端库存支持表格/卡片列表切换 - 移动端三个列表屏工具栏改 Wrap 紧凑布局、导出/显示字段图标化 - 退出登录统一到左侧导航:删系统设置内与桌面右上角下拉,桌面左侧栏底部新增 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -304,15 +304,26 @@ class ColumnToggleButton extends StatelessWidget {
|
||||
final Set<String> hidden;
|
||||
final ValueChanged<Set<String>> onChanged;
|
||||
|
||||
/// 紧凑模式:只显示图标(移动端用,省空间)。
|
||||
final bool compact;
|
||||
|
||||
const ColumnToggleButton({
|
||||
super.key,
|
||||
required this.columns,
|
||||
required this.hidden,
|
||||
required this.onChanged,
|
||||
this.compact = false,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (compact) {
|
||||
return IconButton(
|
||||
tooltip: '显示字段',
|
||||
icon: const Icon(Icons.view_column_outlined, size: 20),
|
||||
onPressed: () => _show(context),
|
||||
);
|
||||
}
|
||||
return OutlinedButton(
|
||||
onPressed: () => _show(context),
|
||||
style: OutlinedButton.styleFrom(
|
||||
|
||||
Reference in New Issue
Block a user