flutter Icon可以用Image替换

2020-09-06  本文已影响0人  赵哥窟
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)),
        ],
上一篇 下一篇

猜你喜欢

热点阅读