出于某種原因,它在第 19 行向我拋出了這個錯誤(突出顯示)
The named parameter 'child' isn't defined.
有什么我沒看到的嗎?
謝謝!
-T

uj5u.com熱心網友回復:
小AppBar部件沒有任何子屬性。您需要使用action.
這是示例
appBar: AppBar(
actions: <Widget>[
RaisedButton(
onPressed: () async {},
child: Text('Sign in Anen'),
),
],
),
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/435787.html
上一篇:顯示連接的藍牙設備Kotlin
