Flutter 单击缩略图时如何展开/调整图像大小

Flutter 单击缩略图时如何展开/调整图像大小,flutter,Flutter,我有一个类似WhatsApp的结构。当我点击缩略图时,我想在屏幕上展开/调整大小。我该怎么做 Column( children: <Widget>[ GestureDetector( onTap: () { // code? }, child: Container( width: 150.0, height: 150.0, decoration: BoxDecoration

我有一个类似WhatsApp的结构。当我点击缩略图时,我想在屏幕上展开/调整大小。我该怎么做

Column(
  children: <Widget>[
    GestureDetector(
      onTap: () {
        // code?
      },
      child: Container(
        width: 150.0,
        height: 150.0,
        decoration: BoxDecoration(
        shape: BoxShape.circle,
        image: DecorationImage(
          image: AssetImage('assets/images/person.png'),
        ),
      ),
    ),
  ),
列(
儿童:[
手势检测器(
onTap:(){
//密码?
},
子:容器(
宽度:150.0,
高度:150.0,
装饰:盒子装饰(
形状:BoxShape.circle,
图像:装饰图像(
image:AssetImage('assets/images/person.png'),
),
),
),
),

单击图像时,会显示一个对话框,其中只有图像作为其子对象,并使用Hero widget动画。

听起来您想使用,但我不使用WhatsApp,因此如果没有屏幕截图,很难确定。