Ankur Gupta
07/06/2020, 7:51 PMdrawShadow()
modifier? I’m trying to make neumorphism design components. It would be great to have more control on shadows similar to the box-shadow
property in CSS.Leland Richardson [G]
07/06/2020, 8:22 PMLeland Richardson [G]
07/06/2020, 8:23 PMLeland Richardson [G]
07/06/2020, 8:23 PMSergey Y.
07/06/2020, 9:17 PMLeland Richardson [G]
07/06/2020, 9:24 PMLeland Richardson [G]
07/06/2020, 9:25 PMLeland Richardson [G]
07/06/2020, 9:25 PMSergey Y.
07/06/2020, 9:35 PMLeland Richardson [G]
07/06/2020, 9:39 PMLeland Richardson [G]
07/06/2020, 9:40 PMLeland Richardson [G]
07/06/2020, 9:40 PMSergey Y.
07/06/2020, 9:42 PMcompose-skia
module or something like that. Which will not be a part of the Core but can be imported as a library like any other Jetpack
library. ☹️Leland Richardson [G]
07/06/2020, 9:43 PMSergey Y.
07/06/2020, 9:44 PMLeland Richardson [G]
07/06/2020, 9:45 PMromainguy
07/06/2020, 9:45 PMromainguy
07/06/2020, 9:45 PMromainguy
07/06/2020, 9:46 PMLeland Richardson [G]
07/06/2020, 9:47 PMSergey Y.
07/06/2020, 9:48 PMromainguy
07/06/2020, 9:48 PMromainguy
07/06/2020, 9:48 PMromainguy
07/06/2020, 9:49 PMromainguy
07/06/2020, 9:49 PMSergey Y.
07/06/2020, 9:52 PMromainguy
07/06/2020, 9:54 PMSergey Y.
07/06/2020, 9:56 PMSergey Y.
07/06/2020, 10:26 PMgildor
07/07/2020, 2:59 AMright now we try to use the platform’s canvas, which can draw shadows more efficiently than we can at the compose layerIt may sounds reasonable if you expect that standard shadows are more common, but on practice we just replace native shadow with 9-patch or include a couple nested layouts with shadow background just to emulate shadow which designers want I think compose definitely need custom shadow drawing modifier, even if it wouldn’t be perfectly efficient, because all ad-hoc solutions which we use probably even less efficient and often looks not so good Now we are on position when we struggle with every custom shadow (and we have a lot of them, design team is not happy with standard material ones) and it makes developer sad when we implement it properly for every case and it makes designers sad if it was not implemented as they expected (when we cheat and use cardview or elevation for elements to avoid custom shadows)
gildor
07/07/2020, 3:06 AMLeland Richardson [G]
07/07/2020, 3:52 AMgildor
07/07/2020, 3:55 AMLeland Richardson [G]
07/07/2020, 3:56 AMLeland Richardson [G]
07/07/2020, 3:56 AMLeland Richardson [G]
07/07/2020, 3:56 AMgildor
07/07/2020, 3:56 AMAdrian Blanco
07/07/2020, 4:49 AMLeland Richardson [G]
07/07/2020, 5:03 AMromainguy
07/07/2020, 6:07 AMromainguy
07/07/2020, 6:08 AMromainguy
07/07/2020, 6:09 AMAnkur Gupta
07/07/2020, 1:32 PMAnkur Gupta
07/07/2020, 1:34 PMLeland Richardson [G]
07/07/2020, 2:10 PMromainguy
07/07/2020, 3:50 PMAnkur Gupta
07/07/2020, 4:16 PMAnkur Gupta
07/07/2020, 4:16 PMromainguy
07/07/2020, 4:24 PMColton Idle
09/08/2020, 12:53 AMAnkur Gupta
09/08/2020, 6:14 PM