This gist will host some nice extensions for anything Kotlin.
/**
* Rounds a [Double] to [numberOfPlaces].
*/
fun Double.roundTo(numberOfPlaces: Int): Double {
return round(this*10.0.pow(numberOfPlaces))/10.0.pow(numberOfPlaces)
package com.example.titl.appbar | |
import androidx.compose.animation.core.animateDpAsState | |
import androidx.compose.foundation.ScrollState | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.layout.height | |
import androidx.compose.foundation.layout.padding | |
import androidx.compose.material3.MaterialTheme.colorScheme | |
import androidx.compose.material3.Surface | |
import androidx.compose.material3.Text |
Since we don't have a dedicated channel (such as #quotes
), I created this gist to keep track of conversations that work as references.
Android specific discussions.
The longest list yet:
plugins { | |
// ... | |
// Put `kapt` below the plugin. | |
id("com.google.dagger.hilt.android") | |
kotlin("kapt") | |
} | |
android { | |
// ... | |
} |