Check Flutter for web for more details
For same UI in Android and iOS app, check this link Hello Food Flutter App
To run this you can check the this Link
or
To install the
webdev
package,
which provides the build tools for Flutter for web, run the following:
$ flutter pub global activate webdev
Ensure that the $HOME/.pub-cache/bin
directory
is in your path,
and then you may use the webdev
command directly from your terminal.
Note: if you have problems configuring
webdev
to run directly, try:
flutter pub global run webdev [command]
.
-
Go to project directory
$ cd hello_food/
-
Update packages.
$ flutter pub upgrade ! flutter_web 0.0.0 from path ../../flutter_web ! flutter_web_ui 0.0.0 from path ../../flutter_web_ui Running "flutter pub upgrade" in hello_world... 5.0s
If that succeeds, you're ready to run it!
-
Build and serve the example locally.
$ webdev serve [INFO] Generating build script completed, took 331ms ... [INFO] Building new asset graph completed, took 1.4s ... [INFO] Running build completed, took 27.9s ... [INFO] Succeeded after 28.1s with 618 outputs (3233 actions) Serving `web` on http://localhost:8080
Open http://localhost:8080 in Chrome and you should see
Hello Food
in red text in the upper-left corner.