30",
shield: false,
image: Image.asset(
"images/icon_head.png",
)),
);
这样,当拿到json数据...size: 18)),
Icon(Icons.person_pin_circle, size: 18)
],
),
OutlineButton(
onPressed...//头像
"images/head_me.jpg",
)),
),
复制代码
4.4:添加点击事件监听
既然封装了,就完善一些,将图像和编辑资料的点击回调传递出去...:onHeadTap,
);
//编辑按钮点击回调
OutlineButton(
onPressed: (){
if (onEditTap!...: (){
if(onTap!