Dictionary 颤振-可滚动布局(带地图的表格)

Dictionary 颤振-可滚动布局(带地图的表格),dictionary,flutter,scrollable,Dictionary,Flutter,Scrollable,我正在尝试创建一个带有地图的简单表单。这需要滚动显示地图(Flexible元素,忽略Google Play服务警报)。我尝试使用SingleChildScrollView和Slipvers,但我不明白具体的工作原理 return Scaffold( key: scaffoldKey, resizeToAvoidBottomPadding: false, body: orientation == Orientation.la

我正在尝试创建一个带有地图的简单表单。这需要滚动显示地图(Flexible元素,忽略Google Play服务警报)。我尝试使用SingleChildScrollView和Slipvers,但我不明白具体的工作原理

 return Scaffold(
            key: scaffoldKey,
            resizeToAvoidBottomPadding: false,
            body: orientation == Orientation.landscape
                ? new Row(children: <Widget>[map])
                : new Column(
                    children: <Widget>[
                      new ListView(
                        padding: EdgeInsets.all(15.0),
                        shrinkWrap: true,
                        children: <Widget>[
                          new SafeArea(child: instalationDropdown),
                          alias,
                          new Divider(color: Colors.transparent),
                          SizedBox(height: 12.0),
                          new Text(
                              DemoLocalizations.of(context).trans('datameter'),
                              textAlign: TextAlign.center,
                              style: TextStyle(
                                  fontSize: 16, fontWeight: FontWeight.bold)),
                          datameter,
                          new Divider(color: Colors.transparent),
                          SizedBox(height: 12.0),
                          new Text(DemoLocalizations.of(context).trans('meter'),
                              textAlign: TextAlign.center,
                              style: TextStyle(
                                  fontSize: 16, fontWeight: FontWeight.bold)),
                          contador,
                          makerDropdown,
                          modeloDropdown,
                          other,
                          new Divider(color: Colors.transparent),
                          next,
                        ],
                      ),
                      map
                    ],
                  ),
返回脚手架(
钥匙:脚手架钥匙,
resizeToAvoidBottomPadding:false,
主体:方向==方向。横向
?新行(子项:[地图])
:新栏(
儿童:[
新列表视图(
填充:所有边缘设置(15.0),
收缩膜:对,
儿童:[
新安全区(儿童:instalationDropdown),
别名
新分隔器(颜色:颜色。透明),
尺寸箱(高度:12.0),
新文本(
.of(context.trans('datameter')的去本地化,
textAlign:textAlign.center,
样式:TextStyle(
fontSize:16,fontWeight:fontWeight.bold),
数据表,
新分隔器(颜色:颜色。透明),
尺寸箱(高度:12.0),
新文本(DemoLocalizations.of(context).trans('meter'),
textAlign:textAlign.center,
样式:TextStyle(
fontSize:16,fontWeight:fontWeight.bold),
康塔多,
makerDropdown,
模型降阶,
其他,,
新分隔器(颜色:颜色。透明),
下一个
],
),
地图
],
),
所以问题是:?我如何将这个布局转换成可滚动的?如果地图是一个固定元素,并且只有表单有滚动,那么它也很有用

更新2


如果我使用SingleChildScrollView返回。

尝试使用Expand Wiedget作为映射函数

包装到
SingleChildScrollView
小部件中

SingleChildScrollView (
        child: Column(
                children: <Widget>[
                         ...
                  ]),
           )
SingleChildScrollView(
子:列(
儿童:[
...
]),
)