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

How I Can Showing The Preview Of The Code Without Run The Project Like The Android Code In Android Studio??? #865

Closed
youndon opened this issue Jul 7, 2021 · 3 comments

Comments

@youndon
Copy link

youndon commented Jul 7, 2021

No description provided.

@youndon youndon changed the title How I Can Showing The Preview Of The Code Without Run The Project Like The Android Code In Android Studio??? How I Can Showing The Preview Of The Code??? Jul 7, 2021
@youndon youndon changed the title How I Can Showing The Preview Of The Code??? How I Can Showing The Preview Of The Code Without Run The Project Like The Android Code In Android Studio??? Jul 7, 2021
@akurasov
Copy link
Contributor

akurasov commented Jul 12, 2021

Hi!

You need:

  1. IDEA plugin (Compose Multiplatform IDE support plugin for IDEA)
  2. Support for UI tooling
    dependencies {
    ....
    implementation(compose.uiTooling)
    }
  3. Compose MP build 0.5.0-235+
  4. Mark Composable function without parms with @Preview annotation (import androidx.compose.desktop.ui.tooling.preview.Preview)
  5. A prevew icon will appear left to it.
  6. If you press it, preview will appear in Desktop Preview panel (right-most on the screen).

@youndon youndon closed this as completed Jul 12, 2021
@youndon youndon reopened this Jul 12, 2021
@youndon
Copy link
Author

youndon commented Jul 12, 2021

Tanks loot I did what you said, And Everything works fine

@okushnikov
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

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

No branches or pull requests

3 participants