Proeject create:
https://flutter.dev/docs/get-started/web
Trouble Shooting.
https://github.com/flutter/flutter/wiki/Flutter-build-release-channels
How To Run:
1. PowerShell OR CMD
$flutter channel beta
$flutter upgrade
$flutter config --enable-web
2. Open GitBash
flutter channel [<channel-name>]
Eg: flutter channel master.
3. Open PowerShell Or CMD OR GitBash
flutter run -d chrome
---------------Other Method--------------------------
Step 1. Open Git Bash Here CMD mode.
Step 2. flutter create <your_project_name>
Ex: flutter create flutter_web_app
Step 3. cd <your_project_name>
Ex: cd flutter_web_app
Step 4. flutter channel <version_name>
Ex: flutter channel master
Output:
Switching to flutter channel 'master'...
git: Your branch is up to date with 'origin/master'.
git: Already on 'master'
Successfully switched to flutter channel 'master'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
Step 5. flutter devices
Output:
2 connected devices:
Web Server • web-server • web-javascript • Flutter Tools
Chrome • chrome • web-javascript • Google Chrome 83.0.4103.61
Step 6. flutter run -d chrome
Wait few minuts. after run your project.
Source:
Officail Site: https://flutter.dev/docs/get-started/web
Git issue: https://github.com/flutter/flutter/wiki/Flutter-build-release-channels
Screenshot:
0 comments:
Post a Comment