flutter的Icon可以用Image替换

Tab(
  text: "首页",
  icon: Image(
    image: AssetImage("assets/images/login_logo.png"),
    width: 28.0,
    height: 28.0,
    color: null,
    fit: BoxFit.scaleDown,
    alignment: Alignment.center,
  ),
 )

你可能感兴趣的:(flutter的Icon可以用Image替换)