Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.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 PersistentBottomSheet内部的WebView不';不检测垂直滚动_Flutter - Fatal编程技术网

Flutter PersistentBottomSheet内部的WebView不';不检测垂直滚动

Flutter PersistentBottomSheet内部的WebView不';不检测垂直滚动,flutter,Flutter,WebView在PersistentBottomSheetController内未检测到垂直滚动,因为它使用向下滚动关闭底部工作表 在PersistentBottomSheetController中使用ListView没有问题。ListView正确检测滚动,并且底部工作表不移动 WebView显示并正确覆盖整个空间,单击“工作正常”,滚动不正常。向上滚动不执行任何操作,向下滚动关闭底部纸张 请注意,我正在使用: 手势识别器:Set() …添加(工厂)( ()=>VerticalDraggestu

WebView在PersistentBottomSheetController内未检测到垂直滚动,因为它使用向下滚动关闭底部工作表

在PersistentBottomSheetController中使用ListView没有问题。ListView正确检测滚动,并且底部工作表不移动

WebView显示并正确覆盖整个空间,单击“工作正常”,滚动不正常。向上滚动不执行任何操作,向下滚动关闭底部纸张

请注意,我正在使用:

手势识别器:Set()
…添加(工厂)(
()=>VerticalDraggesturererecognizer())
PersistentBottomSheetController显示模式(
{BuildContext上下文,小部件子项}){
返回
展示底稿(
上下文:上下文,
生成器:(BuildContext上下文){
返回容器(
装饰:盒子装饰(
颜色:白米,
borderRadius:仅限borderRadius(
左上:半径。圆形(30.0),
右上角:半径。圆形(30.0)),
boxShadow:[
箱形阴影(
扩展半径:-10.0,
半径:80.0,
颜色:灰色鼠标,
偏移量:偏移量(0,-50)),
]),
孩子:部分物理盒子(
高度系数:0.95,
子:列(
儿童:[
填充物(
填充:仅限常量边集(顶部:4.0,底部:4.0),
子:容器(
宽度:30,
身高:5,,
装饰:盒子装饰(
颜色:灰色、雪白、深色,
边界半径:边界半径。圆形(2.5),
),
),
),
扩展(子:列)(
儿童:[
划船(
mainAxisAlignment:mainAxisAlignment.spaceBetween,
儿童:[
容器(
宽度:48,
),
扩大(
子:正则文本(
textAlign:textAlign.center,
路径2:“cafepage\u cell2\u model\u title”,
文本:“取消政策”,
尺寸:16,
颜色:灰铸铁,
),
),
手势检测器(
onTap:()=>Navigator.pop(上下文),
孩子:填充(
填充:仅限常量边集(右:16.0),
子项:IconXDark(),
),
)
],
),
分隔符(),
扩大(
孩子:未来建筑简化(
未来:TranslationSingleton()
.getText('user\u app'、'cafepage\u cell2\u modal\u link'),
生成器:(上下文,t)=>WebView(
initialUrl:t.data,
javascriptMode:javascriptMode.unrestricted,
手势识别器:Set()
…添加(工厂)(
()=>VerticalDraggesturererecognizer()),
),
),
),
],
),
),
],
),
),
);
})
;
}