Open1
Build Native Mobile Apps with Flutter #1
- a view is built as an immutable tree of widgets.
- Widgets are foundation of Flutter apps.
- The framework creates a diff to deterlmin the minimal changes needed to update the render tree.
- We don't need to bridge the UI rendering code to the native platform.
- Layout and rendering calls happen much more frequently than platform-specific calls.
- By doing all the rendering work on the app side, Flutter an quickly render and re-render your widget tree allowing rich motion and smooth scrolling.
- This rendering engine is built in Skia, a 2D graphics rendering library and Dart, it displays widgets for both iOS and Android devices. The iOS and ANdroid platforms just have to provide a canvas for us to place our widgets on and rendering engine inside. This is where it's useful to have ahead of time compilation to native code.
- Ahead-of-time
- The code your app uses is compiled directly to native ARM code, leading to fast startup and predictable performance.
- As long as someone and it could be you, has written their required device plug-ins for your app, such as camera and Wi-Fi and as long as your platform returns to canvas, your Flutter app can be compiled down to run on your target platform of choice.
- Ahead-of-time
- RenderObject
- RenderBox