feat: make server owner of tabs
This commit is contained in:
@@ -39,7 +39,6 @@ class TabPanel extends StatefulWidget {
|
||||
final List<BarTab> tabs;
|
||||
final BarTab? selectedTab;
|
||||
final String? selectedTabId;
|
||||
final Map<String, int> stockByProductId;
|
||||
final bool showSearch;
|
||||
final ValueChanged<String> onTabSelected;
|
||||
final Future<void> Function(TabItem item, int delta) onItemQuantityChanged;
|
||||
@@ -52,7 +51,6 @@ class TabPanel extends StatefulWidget {
|
||||
required this.tabs,
|
||||
required this.selectedTab,
|
||||
required this.selectedTabId,
|
||||
required this.stockByProductId,
|
||||
required this.showSearch,
|
||||
required this.onTabSelected,
|
||||
required this.onItemQuantityChanged,
|
||||
@@ -409,8 +407,6 @@ class _TabPanelState extends State<TabPanel> {
|
||||
)
|
||||
: SelectedTabDetails(
|
||||
tab: widget.selectedTab!,
|
||||
stockByProductId:
|
||||
widget.stockByProductId,
|
||||
onItemQuantityChanged:
|
||||
widget.onItemQuantityChanged,
|
||||
onCloseTabPressed:
|
||||
|
||||
Reference in New Issue
Block a user