Giter Site home page Giter Site logo

flutter-basics's People

Contributors

mahdinazmi 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

Watchers

 avatar  avatar

flutter-basics's Issues

@immutable class complaint

As a newbie I was trying to test drive the Flutter-Basics. I was wondering, this sample code could run on all supported platforms? Or it only runs on certain platforms?

So far I have tried it on an android-x64 emulator, and chrome platform and here is what I encountered:
I am getting following problems and was wondering if you can help me by pointing to the right direction:

  1. running on Chrome, the output showing:
    [Running] dart "c:\Users\rober\MyDevSandBox\Flutter-Basics\lib\main.dart"
    ../my-flutter-app/flutter/packages/flutter/lib/src/material/animated_icons.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
    import 'dart:ui' as ui show Canvas, Paint, Path, lerpDouble;
    ^
    Context: The unavailable library 'dart:ui' is imported through these packages:

    package:fitness => package:flutter => dart:ui

  2. On both platforms tested, the Problem window showing:
    [{
    "resource": "/C:/Users/rober/MyDevSandBox/Flutter-Basics/lib/pages/home.dart",
    "owner": "generated_diagnostic_collection_name#1",
    "code": {
    "value": "must_be_immutable",
    "target": {
    "$mid": 1,
    "path": "/diagnostics/must_be_immutable",
    "scheme": "https",
    "authority": "dart.dev"
    }
    },
    "severity": 4,
    "message": "This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: HomePage.categories, HomePage.diets, HomePage.popularDiets",
    "source": "dart",
    "startLineNumber": 7,
    "startColumn": 7,
    "endLineNumber": 7,
    "endColumn": 15
    }]

Please help, Thanks...

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.