We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From a long discussion w/ @RBusarow
How about this:
sealed interface Screen @WorkflowUiExperimentalApi interface Screen_2 : Screen @WorkflowUiExperimentalApi class EnvironmentScreen<V : Screen_2> @PublishedApi internal constructor( public val screen: V, public val viewEnvironment: ViewEnvironment = ViewEnvironment.EMPTY ) : Compatible, Screen { /* ... */ }
or this:
sealed interface Screen { val environment : ViewEnvironment get() = EMPTY interface LeafScreen : Screen abstract class <S> ContainerScreen<S, C: ContainerScreen<S, C>>( val children: List<S>, ): Screen { abstract val environment: ViewEnvironment abstract fun withEnvironment(e: Environment): C } } class EnvironmentScreen<S: Screen>( val wrapped: S, override val environment: ViewEnvironment ) : ContainerScreen<S, EnvironmentScreen<S>>(listOf(wrapped), environment) { override fun withEnvironment(e: Environment): EnvironmentScreen<S> { return ... } } fun <S: Screen> S.withEnvironment(e: ViewEnvironment): EnvironmentScreen<S>
The text was updated successfully, but these errors were encountered:
VisualFactory to be introduced with #874 should address this.
VisualFactory
Sorry, something went wrong.
ComposeScreenViewFactory
ScreenComposableFactory
Container
Wrapper
No branches or pull requests
From a long discussion w/ @RBusarow
How about this:
or this:
The text was updated successfully, but these errors were encountered: