【发布时间】:2020-08-08 10:18:12
【问题描述】:
我正在使用 VS Code 在 MacOS 上使用 Flutter 编写应用程序(第一次)。
一切正常,但是当我运行应用程序时,同步速度很慢,我的意思是,如果我在主屏幕中更改某些内容,保存然后单击“在 iOS 设备上运行”它会加载旧版本,忽略我的编辑但在随机时间后,它会加载具有正确编辑的正确版本。
我正在开发 Catalina 10.15.4(macbook pro 13 英寸 2015 年初,Xcode 更新到最新版本)。
这是在主屏幕上编写的代码,其他文件与原始模板保持不变。 (我在 LaunchScreen 中添加了 3 张图片,在 Android 启动屏幕中添加了另外一张)。
class HomeScreen extends StatefulWidget {
@override
_HomeScreenState createState() => _HomeScreenState();
}
class _HomeScreenState extends State<HomeScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('BuddyLang'),
centerTitle: true,
backgroundColor: Colors.orange,
),
body: Center(
child: FlatButton(
onPressed: (){},
child: Text('click me'),
),
),
);
}
}
【问题讨论】:
标签: macos performance flutter visual-studio-code ios-simulator