Issue I’m looking at the Jetpack Compose Phases * and trying to mentally map how it applies to recomposition Assuming i have my viewmodel like this: data class MyDataClass( val contentA: String? = null, val contentB: String? = null, val
Continue readingTag: android-jetpack-compose
Retrofit interceptor for JWT datastore in jetpack compose
Issue Sorry new to jetpack compose here, My interceptor for retrofit, uses old JWT value while making api calls from datastore. On relaunch it fetches latest and correct. But just after login, it uses old value of JWT from datastore.
Continue readinghow to create a hexagon shape with curved endsin Jetpack composeH
Issue I’ve attempted to create a hexagon shape in jetpack compose but could only achieve pointed ends, tried several methods with quadraticBezierTo and arcs but couldn’t achieve a result with curved ends. I’ve tried to look on the web but
Continue readingHow to remove bottom padding from bottom sheet in Jetpack Compose
Issue Screenshot Of Problem I am using Material 2 bottomsheet scaffold and while expanding bottom sheet i facing this issue, I haven’t apply any padding for bottom yet it appears and i tried many things but i was unable to
Continue readingAndroid Jetpack Compose Icons doesn't contain some of the material icons
Issue There’re many oft-used material icons in androidx.compose.material.icons.Icons but some are missing. Just as an example there is no print icon. … import androidx.compose.material.Icon import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Menu // ok import androidx.compose.material.icons.filled.Print // error, unresolved reference @Composable fun IconsExample() {
Continue readingHow to reference color resources from ViewModel in Jetpack Compose?
Issue I’m new to Android development with Jetpack Compose. In my @Composable function, I have the following code to create a background gradient color list: val backgroundColors = if (uiState.redGradient) { listOf(colorResource(R.color.customLightRed), colorResource(R.color.customPink)) } else { listOf(colorResource(R.color.customBlue), colorResource(R.color.customGreen)) } My
Continue readinghow can i draw a border between DropdownMenuItems in jet pack compose?
Issue how can i draw a border between DropdownMenuItems in jet pack compose? I want to draw a bottom border or a border between the diferent items in a DropDownMenu in jetpack compose in my Topbar Menu. I try to
Continue readingReasons for the lag of smooth scrolling on lazy column in android jetpack compose
Issue I just use the lazy column for showing the my custom items on the view. I tried with this with itemsIndexed with as well. But lagging issue is not solved. What can be the reasons for this? Solution Since
Continue readingHow to centre align text in Compose Row irrespective of another Image?
Issue How to centre align Text in a compose Row and put the image at the end of the Row with some right padding as well I tried using weight but the text is not in the centre due to
Continue readingKotlin flow not updating UI
Issue I have a list of news items in jetpack compose and I want to show in the UI that the news item is liked by the user. So I have: viewModel: private val _newsList = MutableStateFlow(ArrayList<NewsDto>()) var newsList =
Continue reading