Code Monkey home page Code Monkey logo

flutter-web-demo's Introduction

Flutter Web App Demo

Codemagic build status

Experimental responsive web app powered by Flutter and Dart.

flutter-web-demo

Features

  • photos are fetched from a server
  • infinity scrolling
  • responsive to screen size changes including mobile device orientation changes
  • powered by build_value and built_collection
  • background JSON parsing

Requirements

Develop

Activate webdev package

flutter config --enable-web

Run you app in Chrome

flutter run -d chrome

To hot restart (and rebuild state), press "R".

Building with the production JavaScript compiler

To enable the release compiler, run.

flutter build web

This will create a build/web directory with index.html, main.dart.js and the rest of the files needed to run the application using a static HTTP server.

FAQ

Read more about Flutter for web

If you have any questions ping me on twitter: @minikin

Troubleshooting

1

In case of some errors try to run:

flutter clean

2

If you catch an error like this:

flutter packages pub global run webdev serve -r
webdev could not run for this project.
Could not find a file named "pubspec.yaml" in "/Users/JohnDoe/flutter/.pub-cache/hosted/pub.dartlang.org/built_value-6.7.1".
pub finished with exit code 78

try to run:

pub cache repair

3

This project use built_value and built_collection as dependencies so you might need to run command below before to start a web server:

flutter packages pub run build_runner build --delete-conflicting-outputs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.