使用此示例代码,TextButton 小部件可以在左侧呈现图标。
TextButton.icon(
onPressed: onPressed,
icon: Icon(
Icons.arrowOpen,
color: companySelectionColor,
),
label: text,
),
Run Code Online (Sandbox Code Playgroud)
不过,我想使用完全相同的小部件,但在右侧呈现图标。有什么办法可以让这个图标显示在右侧吗?
flutter ×1