ListAndDetailsPane

fun ListAndDetailsPane(onAddProduct: () -> Unit = {}, onCreateCatalog: (List<Long>) -> Unit = {}, onEditProduct: (Long) -> Unit = {})

A Composable that provides an adaptive list-detail layout for products.

It uses NavigableSupportingPaneScaffold to handle different screen sizes and orientations. In large screens or landscape mode, it can show the list and details (or categories) simultaneously.

Parameters

onAddProduct

Callback invoked when the user chooses to add a new product.

onCreateCatalog

Callback invoked with a list of product IDs to create a catalog.

onEditProduct

Callback invoked when the user chooses to edit a specific product.