|
@@ -55,6 +55,7 @@ fun <T> ListScaffold(
|
|
|
topBarActions: @Composable RowScope.() -> Unit = {},
|
|
topBarActions: @Composable RowScope.() -> Unit = {},
|
|
|
bottomContent: @Composable (ColumnScope.(GlassTopAppBarScrollBehavior) -> Unit)? = null,
|
|
bottomContent: @Composable (ColumnScope.(GlassTopAppBarScrollBehavior) -> Unit)? = null,
|
|
|
dropDownMenuContent: @Composable (ColumnScope.(dismiss: () -> Unit) -> Unit)? = null,
|
|
dropDownMenuContent: @Composable (ColumnScope.(dismiss: () -> Unit) -> Unit)? = null,
|
|
|
|
|
+ onClearSelection: (() -> Unit)? = null,
|
|
|
selectionActions: SelectionActions? = null,
|
|
selectionActions: SelectionActions? = null,
|
|
|
onAddClick: (() -> Unit)? = null,
|
|
onAddClick: (() -> Unit)? = null,
|
|
|
floatingActionButton: @Composable () -> Unit = {
|
|
floatingActionButton: @Composable () -> Unit = {
|
|
@@ -99,7 +100,7 @@ fun <T> ListScaffold(
|
|
|
onSearchSubmit = onSearchSubmit,
|
|
onSearchSubmit = onSearchSubmit,
|
|
|
searchTrailingIcon = searchTrailingIcon,
|
|
searchTrailingIcon = searchTrailingIcon,
|
|
|
searchPlaceholder = searchPlaceholder,
|
|
searchPlaceholder = searchPlaceholder,
|
|
|
- onClearSelection = { selectionActions?.onClearSelection?.invoke() },
|
|
|
|
|
|
|
+ onClearSelection = { onClearSelection?.invoke() ?: selectionActions?.onClearSelection?.invoke() },
|
|
|
topBarActions = topBarActions,
|
|
topBarActions = topBarActions,
|
|
|
dropDownMenuContent = dropDownMenuContent,
|
|
dropDownMenuContent = dropDownMenuContent,
|
|
|
bottomContent = bottomContent
|
|
bottomContent = bottomContent
|