GithubHelp home page GithubHelp logo

leanflutter / widget-livebook Goto Github PK

View Code? Open in Web Editor NEW
611.0 21.0 81.0 21.3 MB

Live preview example for flutter widgets.

Home Page: https://widget-livebook.leanflutter.dev/

License: MIT License

JavaScript 0.36% TypeScript 20.00% HTML 0.50% CSS 0.12% MDX 26.99% Dart 52.03%
flutter flutter-demo flutter-web flutter-widget flutter-samples flutter-widgets

widget-livebook's Introduction

Flutter Widget Livebook

Visit https://widget-livebook.leanflutter.dev


Introduction

Flutter Widget Livebook is a website built with Flutter for web to live preview widget samples online.

Quick Start

Prerequisites

Before starting make sure you have:

Installation

$ melos bootstrap
$ cd storybook
$ pnpm install
$ pnpm build-preview-app

Starting Development

$ cd storybook
$ pnpm storybook

Building for Production

$ yarn build

Related Links

Discussion

If you have any suggestions or questions about this project, you can discuss it by Telegram Group with me.

License

MIT

widget-livebook's People

Contributors

dependabot[bot] avatar igorkilipenko avatar lijy91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

widget-livebook's Issues

Expanded widget main example is missing brackets

The Expanded widget documentation example at https://flutter-widget.live/widgets/Expanded has missing brackets

Center(
  child: Column(
  children: <Widget>[
    Container(
      color: Colors.red,
      height: 100,
      width: 100,
    ),
    Expanded(
      child: Container(
        color: Colors.blue,
        width: 100,
      ),
    ),
    Container(
      color: Colors.red,
      height: 100,
      width: 100,
    ),
  ],
)

Note the missing final ), thus this code cannot be copy pasted into existing code without generating errors. It should be:

Center(
        child: Column(
          children: <Widget>[
            Container(
              color: Colors.red,
              height: 100,
              width: 100,
            ),
            Expanded(
              child: Container(
                color: Colors.blue,
                width: 100,
              ),
            ),
            Container(
              color: Colors.red,
              height: 100,
              width: 100,
            ),
          ],
        ),
      ),

P.S. This issue originally reported to the wrong repo. Hopefully we are now in the correct one.

FLutter web issue

You must have a dependency on build_runner in pubspec.yaml.

pubspec.yaml

dev_dependencies:
build_runner: >=1.6.2 <2.0.0
You must have a dependency on build_web_compilers in pubspec.yaml.

pubspec.yaml

dev_dependencies:
build_web_compilers: >=2.6.1 <3.0.0
You have a dependency on cupertino_icons which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on flutter which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on flutter_test which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
pub finished with exit code 78

I am getting above issue while running flutter web.
After adding build_runner and build_web_compilers dependencies

I am getting below errors

You have a dependency on cupertino_icons which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on flutter which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on flutter_test which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.

and after removing cupertino_icons,flutter and flutter_test from pubspec.Yaml file project is running but Its not included main.dat file only index.html is running then what is the use of Flutter Web
Can anyone suggest y this is happening ?

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.