title: Jetpack Compose -PreviewParameterProvider for WindowWidthSizeClass
body: <p>Using the <code>WindowWidthSizeClass</code> for supporting different screen sizes, I want to create a set of previews for the given sizes using <code>PreviewParameterProvider&lt;WindowWidthSizeClass&gt;</code></p>
  <p>Whenever I tried using the provider I created, the previews are not rendered. After doing some research I came up with this <a href="https://issuetracker.google.com/issues/211012768" rel="nofollow noreferrer">issue</a> but it is supposed to have been fixed already and no additional information is shown in the Issues Panel</p>
  <p>Here's what I have:</p>
  <pre><code>fun DualActionButtons(windowWidth: WindowWidthSizeClass, modifier: Modifier = Modifier) {
      when (windowWidth) {
          WindowWidthSizeClass.Compact -&gt; {
              CompactDualActionButtons()
          }
          WindowWidthSizeClass.Medium -&gt; {
              MediumDualActionButtons()
          }
          WindowWidthSizeClass.Expanded -&gt; {
              ExpandedDualActionButtons()
          }
      }
  }
  
  class WindowWidthSizePreviewParameterProvider : PreviewParameterProvider&lt;WindowWidthSizeClass&gt; {
      override val values: Sequence&lt;WindowWidthSizeClass&gt; =
          sequenceOf(WindowWidthSizeClass.Compact,
              WindowWidthSizeClass.Medium,
              WindowWidthSizeClass.Expanded)
  
  }
  
  @Preview
  @Composable
  fun DualActionButtonsPreview(
      @PreviewParameter(WindowWidthSizePreviewParameterProvider::class) windowWidth: WindowWidthSizeClass,
  ) {
      MyTheme {
          DualActionButtons(windowWidth)
      }
  }
  </code></pre>