我是编码新手,不确定如何将文本放入实际图标下的 TextButton.icon 中。请问你能帮忙吗?这是代码:
TextButton.icon(
onPressed: () => {},
icon: Icon(
Icons.add,
color: Colors.white,
size: 50,
),
label: Text(
'Label',
style: TextStyle(
color: Colors.white,
),
)),
Run Code Online (Sandbox Code Playgroud)