颤振弹出对话框

时间:2020-10-11 23:20:03

标签: flutter flutter-layout

我希望在图片容器正下方的Facebook上显示弹出窗口。 这是我要在下面弹出的图像容器的代码:

InkWell(
              onTap: (){
                // Popup box or Dialog here
              },
              child: Container(
                height: 260,
                color: Hexcolor('#637dd6'),
                child: Center(
                  child: Stack(
                    children: <Widget>[
                      Padding(
                        padding: const EdgeInsets.only(left: 0.0),
                        child: CircleAvatar(
                          radius: 80,
                          backgroundImage: AssetImage(SvgImages.profile),
                        ),
                      ),
                      Positioned(
                          top: 0,
                          right: 10,
                          child: Container(
                            height: 40,
                            width: 40,
                            child: Icon(
                              Icons.camera_enhance,
                              color: Colors.white,
                            ),
                            decoration: BoxDecoration(
                              shape: BoxShape.circle,
                              color: Hexcolor('#0565ac'),
                            ),
                          ))
                    ],
                  ),
                ),
              ),
            ),

这是我的代码输出:

enter image description here

这是我要在图像下方创建的弹出窗口:

enter image description here

0 个答案:

没有答案