Flutter 在应用web视图中使用Flatter_加载网页时,CircularProgressIndicator在ios中不起作用

Flutter 在应用web视图中使用Flatter_加载网页时,CircularProgressIndicator在ios中不起作用,flutter,dart,Flutter,Dart,我试图在等待web时添加一个CircularProgressIndicator 页面加载,然后页面显示和循环指示器 不显示在屏幕上。在android设备中工作,但在ios设备中工作 不工作,为什么 我的代码: 动态进度=0; 返回安全区( 孩子:脚手架( appBar:appBar( 行动:[ 图标按钮( 图标:图标(图标。箭头\前进\ ios), onPressed:_onBack, ), ], //操作:[导航控制(_controller.future)], ), 正文:新生成器(生成器:(

我试图在等待web时添加一个CircularProgressIndicator 页面加载,然后页面显示和循环指示器 不显示在屏幕上。在android设备中工作,但在ios设备中工作 不工作,为什么

我的代码:

动态进度=0;
返回安全区(
孩子:脚手架(
appBar:appBar(
行动:[
图标按钮(
图标:图标(图标。箭头\前进\ ios),
onPressed:_onBack,
),
],
//操作:[导航控制(_controller.future)],
),
正文:新生成器(生成器:(BuildContext contix){
返回容器(
子:堆栈(
儿童:[
威尔波普示波器(
onWillPop:_onBack,
儿童:安全区(
子:InAppWebView(
initialUrl:url,
onWebViewCreated:
(InAppWebViewController-webViewController){
控制器=webViewController;
},
onLoadStart:(在AppWebViewController中,
字符串url){},
已更改的进程:
(在应用WebViewController中,
int进度){
设置状态(){
这个。进度=进度/100;
});
},
),
),
),
对齐(
对齐:对齐.center,
子项:_buildProgressBarIOS()),
],
),
);
})),
);
_buildProgressBarIOS()方法:

Widget\u buildProgressBarIOS(){
如果(进度!=1.0){
返回容器(
子:列(
mainAxisAlignment:mainAxisAlignment.center,
儿童:[
铜活性指示器(
动画:错误,
半径:50,
),
],
),
);
}
返回容器();
}

创建一个返回web视图的函数,然后执行以下操作:-

body: new Builder(builder: (BuildContext context) {
   return progress == 100.0 ? yourInAppWebView() : circularIndicator();
}
Widget _buildProgressBarIOS() {
    if (progress != 1.0) {
      return Container(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            CupertinoActivityIndicator(
              animating: false,
              radius: 50,
            ),
          ],
        ),
      );
    }
    return Container();
  }
body: new Builder(builder: (BuildContext context) {
   return progress == 100.0 ? yourInAppWebView() : circularIndicator();
}