如何使堆栈小部件可滚动?

时间:2019-11-01 11:18:28

标签: flutter dart

我无法使用SingleChildScrollView通过堆栈小部件滚动它,

enter image description here

我使用了Positioned()Column()小部件并带有堆栈

Positioned()用于取消,菜单,注销小部件, 和Column()用于“ GAIN OF DAY”,“ PROFILE”和“ CONTACT US”按钮。

代码:

 body: Stack(
        children: <Widget>[
          Positioned(
            top: 20.0,
            left: 10.0,
            child: // cancel icon
          ),
         Positioned(
            top: 60.0,
            child: //MENU WIDGET
          ),
         Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[  
             Row(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: <Widget>[
                 GestureDetector(
                      //GAIN OF THE DAY ICON BUTTON
                    ),
                 GestureDetector(
                     //PROFILE PAGE BUTTON
                    )
                ],
              ),
               GestureDetector(
                //CONTACT US BUTTON
               ),
            ],
          ),
          Positioned(
          // LOG OUT WIDGET
          ),

        ],
      ),

0 个答案:

没有答案