小编Arv*_*vin的帖子

在颤动时显示全屏图像

有没有办法显示全屏图像?

    var imagejadwal = new Image.network(
    "https://firebasestorage.googleapis.com/v0/b/c-smp-bruder.appspot.com/o/fotojadwal.jpg?alt=media&token=b35b74df-eb40-4978-8039-2f1ff2565a57",
    fit: BoxFit.cover
);
return new Scaffold(
  appBar: new AppBar(
    title: new Text(widget.title),
  ),
  body: new Center(
      child: imagejadwal
  ),
);
Run Code Online (Sandbox Code Playgroud)

在该代码中,图像周围有空间:/

dart flutter

12
推荐指数
4
解决办法
1万
查看次数

以编程方式显示工具提示

在此处输入图片说明

我想让如果按下浮动操作按钮,它会显示工具提示。但我不知道如何以编程方式显示它。

有没有办法显示它?

dart flutter

5
推荐指数
1
解决办法
8536
查看次数

按下时更改浮动按钮图标的方法

按下时有没有办法更改浮动按钮的图标?码:

var musicButton = new FloatingActionButton(
    onPressed: (){
      if(playerState == PlayerState.playing) {
        //setState(() => child = new Icon(Icons.pause));
        setState((){
          child: new Icon(Icons.play_arrow);
        });
        pause();
      } else if (playerState == PlayerState.paused){
        setState((){
          child: new Icon(Icons.pause);
        });
        play();
      }
    },
    tooltip: 'Play Music',
    child: new Icon(Icons.pause));
Run Code Online (Sandbox Code Playgroud)

dart flutter

4
推荐指数
1
解决办法
1663
查看次数

标签 统计

dart ×3

flutter ×3