Flutter APPbar 自定义icon

Flutter APPbar 自定义icon


    appBar: AppBar(title: Text("Home"),
            leading: Builder
            (
                builder: (BuildContext context)
                {
                return IconButton(
                icon: Image.asset("assets/images/category_selection_item3_ckecked.png"),
                onPressed:()
                {
                Scaffold.of(context).openDrawer();
                },
                tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,//打开抽屉drawer
                );
                })),

Flutter APPbar 自定义icon_第1张图片
Flutter APPbar 自定义icon_第2张图片

你可能感兴趣的:(Flutter APPbar 自定义icon)