flutter Icon可以用Image替换

2020-09-08 09:52:32 浏览数 (1)

代码语言:javascript复制
actions: <Widget>[
          IconButton(
              key: state.btnKey,
              icon: Image(
                image: AssetImage("assets/images/bokong/bokong_more.png"),
                alignment: Alignment.center,
              ),
              tooltip: 'More',
              onPressed: () => onShow(state, viewService, dispatch)),
        ],

0 人点赞