1.在Preferences-Flutter页找到Experiments,勾选“Show a live preview area in Flutter Outline”,重启AS;
2.打开Widget文件,可以看到Preview窗口,按提示添加DesignTime()构造方法后即可:
1.在Preferences-Flutter页找到Experiments,勾选“Show a live preview area in Flutter Outline”,重启AS;
2.打开Widget文件,可以看到Preview窗口,按提示添加DesignTime()构造方法后即可: