有没有办法将背景图像添加到Flutter应用程序的范围内?
我想将图像作为背景添加到用颤音构建的应用程序中的所有屏幕。是否有任何可能添加此类背景图像的方法,因为Flutter的主题类别中没有提供属性?
I want to add an image as a background to all of my screens in the app built with Flutter. Is there any possible way of adding such a background image since there are no properties provided in Flutter's ThemeData class?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实现这一目标的一种快速方法是创建一个自定义的小部件,您可以调用
脚手架
,其中包含以下代码A quick way to achieve that is to create a custom widget that you could call
ScaffoldImage
and which will contain the following code