【发布时间】:2023-03-27 18:20:01
【问题描述】:
如何解决子重复错误:
错误:重复的命名参数“孩子”。 孩子:CenteredView(
这是我的代码:
Container(
child: RaisedButton(
onPressed: (){},
child: Text(
'Alcoholic Beverages',
style: TextStyle(
decoration:TextDecoration.underline,
fontSize: 25,
),
),
),
child: CenteredView(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
NavigationBar()
]
)
)
),
]
),
);
}
}
【问题讨论】:
标签: flutter flutter-layout flutter-web