Flutter 底部导航栏中的“颤振自定义形状”按钮
我有一个底部导航条的设计(如图所示),我不知道如何制作自定义形状按钮,这是我的底部导航条代码Flutter 底部导航栏中的“颤振自定义形状”按钮,flutter,widget,navigation-drawer,navbar,shapes,Flutter,Widget,Navigation Drawer,Navbar,Shapes,我有一个底部导航条的设计(如图所示),我不知道如何制作自定义形状按钮,这是我的底部导航条代码 Scaffold( appBar: AppBar( title: Text("Reply demo"), ), bottomNavigationBar: BottomAppBar( elevation: 0, color: Color(0xff344955), child: Conta
Scaffold(
appBar: AppBar(
title: Text("Reply demo"),
),
bottomNavigationBar: BottomAppBar(
elevation: 0,
color: Color(0xff344955),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 10.0),
height: 56.0,
child: Row(children: <Widget>[
IconButton(
onPressed: showMenu,
icon: Icon(Icons.menu),
color: Colors.white,
),
Spacer(),
IconButton(
onPressed: () {},
icon: Icon(Icons.add),
color: Colors.white,
),
IconButton(
onPressed: () {},
icon: Icon(Icons.home),
color: Colors.white,
)
]),
),
),
脚手架(
appBar:appBar(
标题:文本(“回复演示”),
),
bottomNavigationBar:BottomAppBar(
海拔:0,
颜色:颜色(0xff344955),
子:容器(
填充:边缘组。对称(水平:10.0),
身高:56.0,
子对象:行(子对象:[
图标按钮(
按下:显示菜单,
图标:图标(图标菜单),
颜色:颜色,白色,
),
垫片(),
图标按钮(
按下:(){},
图标:图标(Icons.add),
颜色:颜色,白色,
),
图标按钮(
按下:(){},
图标:图标(Icons.home),
颜色:颜色,白色,
)
]),
),
),
您需要创建一个自定义小部件,它返回一个容器,并且作为一个孩子有一张图片
home\u photo.png
。您必须将小部件旋转45度。要做到这一点