Commit Activity Browser

Visual guide
Commits from March 28 - April 2
// Decent editor https://blot.hackclub.com/editor // ChatGPT can transform our array into their set of integer tuples used by the tool above. It says to suggest "Convert this coordinate array to x,y pairs divided by 100 and space-separated." or "Convert space-separated x,y pairs back to an array of arrays, with each number multiplied by 100 and rounded to the nearest integer"
 
 
 

Fix navigation bar lottie animation duration.

< 15 min
of work authored at 3:03pm on April 1
by alex-signal
No branch found
v7.39.1
Diff Delta: 11
Classified as:  Bug Fix
Kotlin
.kt$
1 updated file Expand all
File review not started(0/1 file)
Scroll up to first diff
8
8
import androidx.annotation.RawRes
9
9
import androidx.annotation.StringRes
10
10
import androidx.compose.animation.core.animateFloatAsState
11
import androidx.compose.animation.core.tween
11
12
import androidx.compose.foundation.background
12
13
import androidx.compose.foundation.layout.Box
13
14
import androidx.compose.foundation.layout.BoxScope
321
322
  )
322
323
323
324
  val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(destination.icon))
324
  val progress by animateFloatAsState(
if (selected) 1f else 0f
)
325
  val progress by animateFloatAsState(
targetValue = 
if (selected) 1f else 0f
, animationSpec = tween(durationMillis = composition?.duration?.toInt(
)
 ?: 0))
325
326
326
327
  LottieAnimation(
327
328
    composition = composition,
Commit reaction & review