Denis Ismailaj
04/26/2021, 3:32 PMOlivier Patry
04/26/2021, 3:41 PMDenis Ismailaj
04/26/2021, 3:42 PMOlivier Patry
04/26/2021, 3:42 PMassert(
value = currentPage in 0..totalPages,Olivier Patry
04/26/2021, 3:42 PMfor (in in 0..totalPages)Denis Ismailaj
04/26/2021, 3:42 PMuntil in the gistOlivier Patry
04/26/2021, 3:43 PMOlivier Patry
04/26/2021, 3:43 PMval width: Dp by animateDpAsState(if (selected) height * selectedMultiplier else height)Olivier Patry
04/26/2021, 3:43 PMOlivier Patry
04/26/2021, 3:44 PMheight to something like indicatorSizeDenis Ismailaj
04/26/2021, 3:44 PMOlivier Patry
04/26/2021, 3:45 PMsize name rather than a height used as width IMO 🙂Denis Ismailaj
04/26/2021, 3:46 PMOlivier Patry
04/26/2021, 3:46 PMOlivier Patry
04/26/2021, 3:47 PMOlivier Patry
04/26/2021, 3:47 PMDenis Ismailaj
04/26/2021, 3:52 PManimatedDpAsState inside changes the value used for the width with intermediary values that are between the shrinked width and the expanded width, so it doesn’t just skip to the new size immediately, but gradually changes size.Denis Ismailaj
04/26/2021, 3:54 PMSpaceBetween arrangement so it always spreads the available spacing between the dots. So, it looks the same in both directions.Olivier Patry
04/26/2021, 3:55 PMOlivier Patry
04/26/2021, 3:55 PMmiqbaldc
04/27/2021, 7:43 AM