Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.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 如何在颤振Web应用程序中重新加载浏览器选项卡_Flutter_Dart_Flutter Web - Fatal编程技术网

Flutter 如何在颤振Web应用程序中重新加载浏览器选项卡

Flutter 如何在颤振Web应用程序中重新加载浏览器选项卡,flutter,dart,flutter-web,Flutter,Dart,Flutter Web,我有一个在web上运行的颤振应用程序,我需要以编程方式重新加载浏览器选项卡,我想知道除了重新加载之外,html.window.close()是否也有类似的功能。在颤振中有什么方法可以做到这一点吗?使用。方法 import'package:universal_html/html.dart'作为html; 扁平按钮( 子项:文本(“刷新”), 已按下:(){ html.window.location.reload(); }, ), 使用。方法 import'package:universal_htm

我有一个在web上运行的颤振应用程序,我需要以编程方式重新加载浏览器选项卡,我想知道除了重新加载之外,html.window.close()是否也有类似的功能。在颤振中有什么方法可以做到这一点吗?

使用。方法

import'package:universal_html/html.dart'作为html;
扁平按钮(
子项:文本(“刷新”),
已按下:(){
html.window.location.reload();
},
),
使用。方法

import'package:universal_html/html.dart'作为html;
扁平按钮(
子项:文本(“刷新”),
已按下:(){
html.window.location.reload();
},
),

谢谢,成功了。谢谢,成功了。