【发布时间】:2022-01-18 22:36:35
【问题描述】:
如何使我的应用栏按钮(通知按钮,我不知道,菜单?)看起来像这样?
我的意思是,我怎样才能复制这个border 或背景。也许我应该使用其他东西而不是出现?
现在我正在使用这个:
class _CustomAppBarState extends State<CustomAppBar> {
@override
Widget build(BuildContext context) {
return AppBar(
backgroundColor: Colors.transparent,
elevation: 0,
leading: IconButton(
icon: Icon(
Icons.menu,
color: Color(0xff736f71),
),
onPressed: () {},
),
actions: [
IconButton(
icon: Icon(Icons.add),
color: Color(0xff736f71),
onPressed: () {},
),
],
);
}
}```
【问题讨论】:
标签: flutter dart button flutter-layout flutter-appbar