Flutter may technically allow you to code once and build an app for multiple platforms, but realistically you do not want to have the same experience on mobile as you do on web or desktop. Its easy to think of solutions to this - "use this widget if on iOS else use this one", or "use mobile view if on mobile else desktop".
Will flutter also take care of treeshaking the machine code so that bundle for the web app isnt 5 times larger than it needs to be?