简体   繁体   English

无法识别样式参数

[英]Style parameter can't be identified

I'm actually new to flutter and dart and I'm facing a problem for a couple of hours.我实际上是 flutter 和 dart 的新手,我面临几个小时的问题。 I am using VS code and the code is from a tutorial (The code is working for the Tutor just fine...).我正在使用 VS 代码,代码来自教程(该代码适用于 Tutor 很好......)。 The Problem is that the style Parameter as seen in the following picture can't be identified.问题是无法识别下图中的样式参数。

Picture of code代码图片

代码图片

Picture of Problem问题图片

问题图片

I've already read a view other posts of stackoverflow, but I dont get it.我已经阅读了stackoverflow的其他帖子,但我不明白。 My Path variables should be all right and I've checked all extensions and everything works right.我的路径变量应该没问题,我检查了所有扩展,一切正常。 Also my Dart Sdk path in VScode is set to the right location:我在 VScode 中的 Dart Sdk 路径也设置为正确的位置:

C:\Users\Steffen Hain\flutter\bin\cache\dart-sdk C:\Users\Steffen Hain\flutter\bin\cache\dart-sdk

Appreciate your help!感谢你的帮助!

your problem is that you closed the text widget before the style just remove the comma and the bracket shown in the image and put it where the blue arrow is:您的问题是您在样式之前关闭了文本小部件,只需删除图像中显示的逗号和括号并将其放在蓝色箭头所在的位置:

在此处输入图像描述

hope it helped希望它有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM