flutter-basics's People
Forkers
justice-orogun cristhianbuiza jo3-w3b-d3v fdsap-rebago michaeledore yasoufi99 sanya-l eliseunogueira 1999rahul mrtarwinder muratpurc sandy-exe mateussms shubh-is-coding nedshift2023 mikeratcliffe97 oscarcodev mollik001 franckystephan vldmr1986 adriano-r fluttermeetup kofiacheampong abdinegoro butaforsky komirellipavan karlfenceobeto alexbona dzungnguyenai77 sudoabhi ilisium-tech jovanimojo romugb mcdemircioglu fi2a5 akashdip2001 larry-oj jackreachout newlifehejian eshawaheed26 akshaychinta16 raoufgourou00 j034j keyvan-qjd richbrian88 iotoutpostflutter-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:
-
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
-
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.