code with andrea – flutter clone
this project is a flutter download of the home page at codewithandrea.com.
it was built to analyze the performance of the same site built with flutter web vs html+css+js (see the performance comparison below). but it also runs on desktop and mobile.
a flutter web build is hosted here:
note: the flutter web app has been tested to work on chrome and safari. on firefox, webp images don’t seem to load and sometimes canvaskit crashes with an “out of memory” exception.
supported features
- responsive navigation header on desktop, tablet, mobile
- page intro
- featured tutorials (cards)
- flutter courses (cards)
- testimonials section
- about section
- email signup at the bottom
- site footer
non-supported features
this project is not meant to be a complete website, but only a ui clone.
as such, buttons and links don’t do anything when clicked.
furthermore, only the dark theme has been built (while the full site supports light theme also).
coding style
this prototype has been built in less than 10 hours. while the ui has been broken into small widget classes, this code is not production-ready.
building the app
as specified in the flutter web renderers page, the app can be built with three different modes:
# default option (auto)
flutter build web --release
# html renderer
flutter build web --web-renderer html --release
# canvaskit renderer
flutter build web --web-renderer canvaskit --release
the tests below were run with both the html and canvaskit renderers.
performance report
i have deployed this download as a flutter web app and compared it with my main site using pagespeed insights and webpagetest.org.
you can find all the results in this video & article on my site:
you’re welcome. ��
Comments are closed.