Lucas
01/04/2025, 10:20 PMBox(modifier = Modifier.fillMaxSize().border(4.dp, Color.Red)) {
Text("Hey this is a test", fontSize = 14.sp)
}
Michael Paus
01/05/2025, 9:45 AMLucas
01/05/2025, 11:47 AMMichael Paus
01/05/2025, 11:55 AMLucas
01/05/2025, 12:01 PMChrimaeon
01/05/2025, 2:59 PMThe sizes and the layout seem to be correct which is an indication that the screen is actually recomposed. Just the rendering is not sharp for some strange reason.are you sure that what you are seeing is not just the browser zooming in on a canvas which is basically an image and thats why its blurred?
Michael Paus
01/05/2025, 7:25 PMLucas
01/18/2025, 10:03 AMephemient
01/18/2025, 10:54 AMLucas
01/18/2025, 11:18 AMChrimaeon
01/18/2025, 11:21 AM<meta-data>
information
https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tagLucas
01/18/2025, 11:27 AMChrimaeon
01/18/2025, 11:32 AMMichael Paus
01/18/2025, 12:07 PMChrimaeon
01/18/2025, 12:08 PMMichael Paus
01/18/2025, 12:14 PMChrimaeon
01/18/2025, 12:15 PMExerosis
01/18/2025, 11:48 PMMichael Paus
01/19/2025, 8:12 AMChrimaeon
01/19/2025, 10:44 AMwidth
and height
and style width
and height
in both scenarios.
when reloading its just rendering a higher res “image” on the canvas.Skaldebane
02/04/2025, 11:42 PMwindow.devicePixelRatio
property which provides the current scaling (zoom) ratio.
Compose can (and should) check changes to that value on the resize
event (because the regular browser zoom also causes a resize), and re-render accordingly.
This isn't new, Flutter already does it. Try zooming on the Material 3 flutter demo, and it'll scale accordingly: https://flutterweb-wasm.web.app/Skaldebane
02/05/2025, 2:42 AMLucas
02/05/2025, 5:25 AMLucas
02/07/2025, 2:39 AM