-
Notifications
You must be signed in to change notification settings - Fork 1
Web
Loi Tran edited this page Jul 9, 2023
·
2 revisions
Tips & tricks for web
-
How to run from cli
- flutter build web
- flutter run -d chrome
-
How to build on Netlify
-
Updates or Installs Flutter
-
Builds Flutter using web renderer
-
Replaces the default
<base href="$FLUTTER_BASE_HREF">so that assets paths work.if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git; fi && flutter/bin/flutter config --enable-web && flutter/bin/flutter build web --web-renderer html && sed -i 's#<base href="/">#<base href="https://royal-stock-exchange.netlify.app">#g' build/web/index.html
-