mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Preview for Timeline Event - WIP
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'io.element.android-compose'
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package io.element.android.x.core.compose
|
||||
|
||||
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
|
||||
|
||||
open class PairCombinedPreviewParameter<T1, T2>(
|
||||
private val provider: Pair<PreviewParameterProvider<T1>, PreviewParameterProvider<T2>>
|
||||
) : PreviewParameterProvider<Pair<T1, T2>> {
|
||||
override val values: Sequence<Pair<T1, T2>>
|
||||
get() = provider.first.values.flatMap { first ->
|
||||
provider.second.values.map { second ->
|
||||
first to second
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user