[英]1 positional argument(s) expected, but 0 found error
我收到“需要 1 個位置參數,但找到 0 個。(文檔)嘗試添加缺少的參數”錯誤。 我錯過了什么?
SizedBox(height: 16.0),
Text(
child: Text(_outputText),
style: TextStyle(
fontSize: 20.0,
),
),
Text
小部件沒有child
參數,它將位置參數作為字符串,格式為
Text(
_outputText,
style: TextStyle(
fontSize: 20.0,
),
),
更多關於Text
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.