【发布时间】:2021-12-23 15:29:20
【问题描述】:
【问题讨论】:
标签: android ios flutter textbox alignment
【问题讨论】:
标签: android ios flutter textbox alignment
试试下面的答案希望它对你有帮助。您可以使用 ListTile 和 Row Widget 参考 ListTile here 和 Row here
使用ListTile
ListTile(
leading: CircleAvatar(),
title: Text(
'Make a word using letter \'a\'',
),
),
使用Row
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
CircleAvatar(),
Text(
'Make a word using letter \'a\' ',
),
],
),
【讨论】:
使用行小部件。
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Text('Hello Flutter'),
const Icon(
Icons.schedule,
size: 18,
color: Colors.white54,
),
const SizedBox(
width: 4,
),
const Text(
' min',
style: TextStyle(
fontSize: 11,
color: Color(0xfff1f1f1),
fontWeight: FontWeight.w700,
),
),
],
);
【讨论】: