Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter SingleSChildScrollView在IOS中向上移动_Flutter_Dart_Flutter Layout_Mobile Development - Fatal编程技术网

Flutter SingleSChildScrollView在IOS中向上移动

Flutter SingleSChildScrollView在IOS中向上移动,flutter,dart,flutter-layout,mobile-development,Flutter,Dart,Flutter Layout,Mobile Development,我对iOS中的SingleChildScrollView有点问题 该应用程序在android上运行良好,但在iphoneXr上有所提升。 下图 代码如下 backgroundColor: Color.fromRGBO(3, 9, 23, 13), resizeToAvoidBottomPadding: false, body: SingleChildScrollView( child: Container(

我对iOS中的SingleChildScrollView有点问题

该应用程序在android上运行良好,但在iphoneXr上有所提升。 下图

代码如下

      backgroundColor: Color.fromRGBO(3, 9, 23, 13),
      resizeToAvoidBottomPadding: false,
      body: SingleChildScrollView(

              child: Container(
          width: double.infinity,
          child: Stack(
            children: <Widget>[
              Positioned(
                top: -50,
                left: 0,
                child: Container(
                  width: width,
                  height: 1000,
                  decoration: BoxDecoration(
                    image: DecorationImage(
                      image: AssetImage('assets/images/component.png'),
                      fit: BoxFit.fill,
                    ),
                  ),
                  child: new BackdropFilter(
                    filter: new ImageFilter.blur(sigmaX: 12.0, sigmaY: 12.0),
                    child: new Container(
                      decoration: new BoxDecoration(
                        color: Colors.white.withOpacity(0.0),
                      ),
                    ),
                  ),
                ),
              ),

backgroundColor:Color.fromRGBO(3,9,23,13),
resizeToAvoidBottomPadding:false,
正文:SingleChildScrollView(
子:容器(
宽度:double.infinity,
子:堆栈(
儿童:[
定位(
前50名,
左:0,,
子:容器(
宽度:宽度,
身高:1000,
装饰:盒子装饰(
图像:装饰图像(
image:AssetImage('assets/images/component.png'),
fit:BoxFit.fill,
),
),
孩子:新的反滴过滤器(
过滤器:新的ImageFilter.blur(sigmaX:12.0,sigmaY:12.0),
子容器:新容器(
装饰:新盒子装饰(
颜色:颜色。白色。不透明度(0.0),
),
),
),
),
),

您应该使用
安全区域来包含您的SingleChildScrollView,如下所示:

return Scaffold(
    body: SafeArea(
       child: SingleChildScrollView(
            child: Container(),
        ),
    ),
);