사이드바 메뉴 숨김: 우편번호 검색·재고 이력 항목 비노출 처리
- SidebarMenu에 기능 토글(static const) 추가 - 우편번호 검색(Routes.zipcode), 재고 이력(Routes.inventoryHistory) 메뉴를 조건부 렌더링으로 숨김 - 라우트/코드는 유지하며 메뉴에서만 비노출
This commit is contained in:
@@ -1008,6 +1008,10 @@ class SidebarMenu extends StatelessWidget {
|
|||||||
required this.expiringMaintenanceCount,
|
required this.expiringMaintenanceCount,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Feature visibility toggles for sidebar (hide without removing routes)
|
||||||
|
static const bool _enableInventoryMenu = false; // 재고관리(재고 이력) 메뉴 숨김
|
||||||
|
static const bool _enableZipcodeMenu = false; // 우편번호 검색 메뉴 숨김
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
@@ -1067,6 +1071,7 @@ class SidebarMenu extends StatelessWidget {
|
|||||||
badge: null,
|
badge: null,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
if (_enableInventoryMenu)
|
||||||
_buildMenuItem(
|
_buildMenuItem(
|
||||||
icon: Icons.history,
|
icon: Icons.history,
|
||||||
title: '재고 이력',
|
title: '재고 이력',
|
||||||
@@ -1086,6 +1091,7 @@ class SidebarMenu extends StatelessWidget {
|
|||||||
badge: null,
|
badge: null,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
if (_enableZipcodeMenu)
|
||||||
_buildMenuItem(
|
_buildMenuItem(
|
||||||
icon: Icons.location_on_outlined,
|
icon: Icons.location_on_outlined,
|
||||||
title: '우편번호 검색',
|
title: '우편번호 검색',
|
||||||
|
|||||||
Reference in New Issue
Block a user