我想要做的是构建一个 flutter web 应用程序,当在浏览器中显示时,该选项卡会显示一个图标和一个标题(目前它只显示世界图标和本地主机...标题)。
实际结果 :
预期结果:
编辑:我现在可以添加标题,因为这是在主函数中设置的
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: Icon(Icons.menu, color: Colors.white,),
title: Text(_your title here_),
)
...
);
}
Run Code Online (Sandbox Code Playgroud)
所以,我唯一需要编辑的是网站图标