admin管理员组文章数量:1313001
It so happens that I started my acquaintance with IDEs with Eclipse, NetBeans, Android Studio. And now I got to Visual Studio Code. A good IDE is supposed to offer only those properties that belong to a given class. Is it normal behavior that in the following code snippet VSCode offers a width property for ElevatedButton?
SizedBox(
height: 50,
width: 250,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.deepPurple.withAlpha(400),
shape: kRBorderShape,
),
child: const Text('Barcode Scanner'),
onPressed: () {}
),
),
It so happens that I started my acquaintance with IDEs with Eclipse, NetBeans, Android Studio. And now I got to Visual Studio Code. A good IDE is supposed to offer only those properties that belong to a given class. Is it normal behavior that in the following code snippet VSCode offers a width property for ElevatedButton?
SizedBox(
height: 50,
width: 250,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.deepPurple.withAlpha(400),
shape: kRBorderShape,
),
child: const Text('Barcode Scanner'),
onPressed: () {}
),
),
Share
Improve this question
edited Feb 2 at 7:14
rozerro
asked Feb 2 at 7:07
rozerrorozerro
7,21614 gold badges64 silver badges117 bronze badges
5
|
1 Answer
Reset to default 0You can check the differance between two images, The shape of the following suggestion is different from abc, abc is not property.
本文标签: flutterWhy does VSCode offer widget properties that don39t existStack Overflow
版权声明:本文标题:flutter - Why does VSCode offer widget properties that don't exist? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741854600a2401266.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
abc
icon suggests this is a simple word completion not any specific property or method completion. Its acting as a simple autocomplete and not offering any specific properties – Suraj Rao Commented Feb 2 at 7:37