fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.4.15 (#3595)
* Update dependency io.nlopez.compose.rules:detekt to v0.4.15 * Fix new detekt issues * Fix KtLint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
parent
2944879d1b
commit
98d9abecd9
10 changed files with 19 additions and 6 deletions
|
|
@ -18,6 +18,8 @@ import androidx.compose.foundation.layout.padding
|
|||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.movableContentOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
|
@ -39,6 +41,7 @@ import io.element.android.libraries.designsystem.theme.components.Text
|
|||
* @param footer optional footer.
|
||||
* @param content main content.
|
||||
*/
|
||||
@Suppress("NAME_SHADOWING")
|
||||
@Composable
|
||||
fun HeaderFooterPage(
|
||||
modifier: Modifier = Modifier,
|
||||
|
|
@ -51,6 +54,10 @@ fun HeaderFooterPage(
|
|||
footer: @Composable () -> Unit = {},
|
||||
content: @Composable () -> Unit = {},
|
||||
) {
|
||||
val topBar = remember { movableContentOf(topBar) }
|
||||
val header = remember { movableContentOf(header) }
|
||||
val footer = remember { movableContentOf(footer) }
|
||||
val content = remember { movableContentOf(content) }
|
||||
Scaffold(
|
||||
modifier = modifier,
|
||||
topBar = topBar,
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
|||
* closed, [onErrorDismiss] will be invoked. If [onRetry] is not null, a retry button will be displayed.
|
||||
* - When loading, display a loading dialog using [progressDialog]. Pass empty lambda to disable.
|
||||
*/
|
||||
@Suppress("ContentSlotReused") // False positive, the lambdas don't add composable views
|
||||
@Composable
|
||||
fun <T> AsyncActionView(
|
||||
async: AsyncAction<T>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue