【发布时间】:2022-11-28 09:32:39
【问题描述】:
如何在同一屏幕中添加 2 个操作按钮?我试过使用行和列,但它没有像我想要的那样工作。我想在最后添加一个动作按钮。 Here
child: Container(
color: randomColor,
child: Center(
child: Text(
randomName!,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 30.sp,
color: Colors.white70,
fontStyle: FontStyle.italic,
fontWeight: FontWeight.bold),
),
)),
),
floatingActionButton: IconButton(
icon: const Icon(
Icons.format_quote_outlined,
color: Colors.white70,
size: 80,
),
onPressed: () {},
),
floatingActionButtonLocation:
FloatingActionButtonLocation.miniStartTop,
【问题讨论】:
-
你可以使用堆栈
标签: flutter