Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个想要在我的应用程序中使用的简单耀斑对象(石板或黑板)。这个想法是在黑板上用粉笔显示一些文本。我正在努力寻找正确尺寸的黑板。我希望黑板填满大部分屏幕。因此,我需要更改黑板的宽度或高度。
我还没有找到解决方案。是否可以将黑板的宽度更改为 2 倍,将高度更改为 1.5 倍?
因此,我填写屏幕的最简单方法是使用 BoxFit.fill 选项。仍然没有弄清楚如何在颤动中单独改变耀斑的高度和宽度。
Expanded( child: Container( child: FlareActor( 'assets/Slate.flr', artboard: 'MainArtboard', fit: BoxFit.fill, sizeFromArtboard: false,