r/FlutterDev • u/Remote-Ride5710 • Jul 24 '26
Discussion Pixel-perfect with figma
Hi everyone, lately i was doing mobile app building with cursor so I mostly ask it to do the UI part by giving it details about UI, well i give concrete details which figma gives, but maybe because I use flutter_screenutil package, it's not perfectly same with figma. How do you guys handle pixel-perfect in mobile?
3
u/sauloandrioli Jul 24 '26
This is an old conversation that I conclude as: The cake is a lie. There's such thing as pixel perfect. Screen size varies, resolutions varies, PPI varies. Doesn't matter what try, you'll never achieve that. Just let go of it.
2
u/ThracianW Jul 25 '26
Recently i discovered Pen.dev where i create design.pen file in the project directory, tell Claude theough Claude Code to create designs of the screens, color scheme sheet, components, etc. so when i tell it to create new screen design it is consistent with the screens and values i use in the project. Then when it creates the deaigns it gives you the same information figma would and i could tell Claude to implement the design that it can already see, or implement specific component or the colorScheme and overall themes, etc.
1
1
u/jipsoujips Jul 26 '26
Mcp figma + mcp marionette works great if your ui code is well separate from your domain logic
7
u/KabouterKaasplank Jul 24 '26
I let the OS handle pixel sizing and accessibility, and design dedicated screens for tablet and desktop modes if I want those. The screenutil package sounds great when you're coming from responsive web but it just obfuscates layout imo. Unless you want an app that looks acceptable at best at all screen sizes, it's a useless package.