Skip to content
New issue

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

App API prototype #1770

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft

App API prototype #1770

wants to merge 21 commits into from

Conversation

olonho
Copy link
Contributor

@olonho olonho commented Jan 31, 2022

No description provided.

@olonho olonho changed the title App APP prototype App API prototype Feb 1, 2022
expect fun KAppScope.Frame(content: @Composable () -> Unit)

// Complex multi-frame application
fun kapp(name: String = "application", title: String = "Compose Application", content: @Composable KAppScope.() -> Unit) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does name mean application name, and title mean window title? In this case I think it is reasonable to:

  1. Remove default argument for name, let's make it mandatory
  2. Make title a property in some WindowScope, with initial value set to application name
  3. simpleKapp callback should be in WindowScope, and app callback in some window management (router?) scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants