How does the Flutter Engine produce web apps?
In the previous chapters, we discussed the fact that Flutter enables us to build applications for multiple platforms from the same code base. So, the same Flutter code written in Dart can be compiled to any supported platform.
Flutter is essentially a toolkit for building user interfaces, but it also allows applications to interface directly with underlying platform services. When we build a Flutter application for release, the app code is compiled directly to machine code. For example, for the web, a Flutter app is compiled into JavaScript. Let’s learn more about the Flutter architecture in order to understand how a Flutter app is compiled into web, or any other platform-specific machine, code. The following figure shows an overview of the Flutter framework’s architecture:
Figure 4.1 – Flutter architecture layers
Flutter is designed as an extensible, layered system. As you can see in Figure...