SSJetPackComposeProgressButton icon indicating copy to clipboard operation
SSJetPackComposeProgressButton copied to clipboard

Not able to use in material3

Open hiteshsarsava opened this issue 2 years ago • 1 comments
trafficstars

Describe the bug It's showing compile error, Please check the below error showing in android studio. It's for colors and elevation property :


@Composable
public fun SSJetPackComposeProgressButton(
    type: SSButtonType,
    width: Dp,
    height: Dp,
    onClick: () -> Unit,
    assetColor: Color,
    buttonState: SSButtonState,
    buttonBorderStroke: BorderStroke?,
    blinkingIcon: Boolean,
    cornerRadius: Int,
    speedMillis: Int,
    enabled: Boolean,
    elevation: [Error type: Unresolved type for androidx.compose.material.ButtonElevation]?,
    colors: [Error type: Unresolved type for androidx.compose.material.ButtonColors],
    padding: PaddingValues,
    alphaValue: Float,
    leftImagePainter: Painter?,
    rightImagePainter: Painter?,
    successIconPainter: Painter,
    failureIconPainter: Painter,
    successIconColor: Color,
    failureIconColor: Color,
    text: String?,
    textModifier: Modifier,
    fontSize: TextUnit,
    fontStyle: FontStyle?,
    fontFamily: FontFamily?,
    fontWeight: FontWeight?,
    hourHandColor: Color,
    customLoadingIconPainter: Painter,
    customLoadingEffect: SSCustomLoadingEffect,
    customLoadingPadding: Int
): Unit

More error details given by android studio

Cannot access class 'androidx.compose.material.ButtonColors'. Check your module classpath for missing or conflicting dependencies
Cannot access class 'androidx.compose.material.ButtonElevation'. Check your module classpath for missing or conflicting dependencies

To Reproduce Cope paste the code from given in readme

Expected behavior It should not give any compile time error.

Screenshots image

Smartphone (please complete the following information): All Devices

Additional context I am forking this lib and make it compatible to material3

Thanks for this awesome lib.

hiteshsarsava avatar Dec 27 '22 05:12 hiteshsarsava

@Purvesh-Dodiya: Please check this issue

ShwetaChauhan18 avatar Dec 27 '22 06:12 ShwetaChauhan18

QQ_1721012459689

how to make it work.

AdminQQZ avatar Jul 15 '24 03:07 AdminQQZ