NTP-6320 | unification in bottom sheet (#13284)

This commit is contained in:
Sandeep Kumar
2024-10-24 14:39:49 +05:30
committed by GitHub
parent 375d864a17
commit c88dc5775a
2 changed files with 17 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ import com.navi.naviwidgets.extensions.getColorFromHexCode
import com.navi.naviwidgets.extensions.getJsonObject
import com.navi.naviwidgets.models.FooterButtonState
import com.navi.uitron.utils.isNotNull
import com.navi.uitron.utils.orElse
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject
import kotlinx.coroutines.flow.MutableStateFlow
@@ -305,7 +306,13 @@ class TitleWithFooterCardBottomSheet : BaseBottomSheet(), WidgetCallback {
modifier =
Modifier.padding(start = 8.dp)
.background(
color = getColorFromHexCode(hex = "#22D081"),
color =
getColorFromHexCode(
hex =
it.backgroundDrawableData
?.backgroundColor
.orElse("#22D081")
),
shape = RoundedCornerShape(size = 100.dp)
)
) {

View File

@@ -59,6 +59,14 @@ const TopSectionExpandableBottomSheet = ({
};
});
const subtitle = {
...bottomSheetData.subtitle,
textStyle: {
...bottomSheetData.subtitle?.textStyle,
textAlign: "left",
},
} as TextFieldData;
const Header = () => {
return (
<Animated.View style={[styles.title, headerStyle]}>
@@ -91,7 +99,7 @@ const TopSectionExpandableBottomSheet = ({
orientation={bottomSheetData?.gradientOrientation}
>
{bottomSheetData?.subtitle?.text && (
<StyledText textFieldData={bottomSheetData.subtitle} />
<StyledText textFieldData={subtitle} />
)}
{bottomSheetData?.headerDescriptionText && (
<View style={styles.videoContainer}>