4 ms·
- Flutter widgets can be made pixel perfect replicas of native UI components. - Supporting older platforms is much easier with Flutter. - You can use native U
by Comevius 5y ago
- Flutter widgets can be made pixel perfect replicas of native UI components.
- Supporting older platforms is much easier with Flutter.
- You can use native UI components with Flutter if you want to, and mix them with Flutter widgets.
- Flutter has a tiny and fast runtime, React Native runs on Safari or Chrome. Flutter works great on embedded platforms too, such as IoT devices.
- Dart is similar to JavaScript, with the same runtime behavior, though obviously you can't use existing JavaScript libraries outside of the browser. You can use many WASM ones though.
- mahkoh 5y ago>- Flutter widgets can be made pixel perfect replicas of native UI components. How can I make flutter use native font rendering? I've played around with it a bit and fonts look completely off, don't respect my systems hinting settings, etc.
- Comevius 5y agoLow PPI displays require subpixel antialiasing which is not yet supported. https://github.com/flutter/flutter/issues/63043 https://github.com/flutter/flutter/issues/63043
- mahkoh 5y agoThat is unrelated to my question. I'm using hinting and have everything sub-pixel-related disabled. If flutter does not support this, then flutter cannot look native.
- Comevius 5y agoFlutter uses Skia, Harfbuzz and FreeType under the hood. The last two is used by almost every other software for text shaping and rasterization. You should open an issue if your font configuration is not applied, although on Android, iOS and macOS font hinting is not relevant, and I think on Linux fontconfig is used. I don't know about Windows.
- JofArnold 5y agoSmall correction: RN uses their own custom JS engine Hermes.
- Comevius 5y agoThanks for the correction, haven't kept up with React Native for a while. It indeed uses Facebook's own JS engine. https://reactnative.dev/blog/2021/10/26/toward-hermes-being-the-default https://reactnative.dev/blog/2021/10/26/toward-hermes-being-...