Flutter web experiment

Install https://flutter.dev/docs/get-started/web

flutter channel beta
flutter upgrade
flutter config --enable-web

Use Android Studio, create a new Flutter Application

Put the source to lib/main.dart

Run-on Chrome and Android

Change width of the browser and the layout will change appropriately

Try to build release

flutter build apk
flutter build web

The release sources place at build/

Let decode app-release.apk

> All dart sources had been compile to .so About Android native also be minified and optimized. Very nice and secure

Let see on the web release files

  • The index.html file just include main.dart.js
  • The main.dart.js be obfuscated and minified also. Very good.


Leave a Reply

Your email address will not be published.Required fields are marked *