我正在写一个flatter应用程序,它假设有一行图标和文本,但由于某些原因,我无法将文本与图标垂直放置在同一行中.我的意思是,我希望有一个图标,而不是在同一行中有一个文本,但文本比图标高一点.有人知道我该怎么修吗?.(我需要排好队,因为我想排更多的队).
我的代码:
Column(
children: [
Container(
height: size.height * .04,
color: NotificationColor,
child: Row(
children: [
Wrap(
spacing: size.width * .040,
children: [
const Icon(CupertinoIcons.bell),
Text(
"Notification", // this is the text that is higher then the icon
style: TextStyle(
fontSize: size.width * .035,
),
),
],
),
],
),
),
SizedBox(height: size.height * .01),
Container(),
SizedBox(height: size.height * .01),
Container(),
],
),