add fillHeight option to setBackgroundImage

This commit is contained in:
Nick Fisher
2023-09-15 13:51:52 +08:00
parent 96556d5af0
commit c5c78c7478

View File

@@ -90,6 +90,10 @@ class _ExampleWidgetState extends State<ExampleWidget> {
_item(() {
_filamentController.setBackgroundImage('assets/background.ktx');
}, "load background image"),
_item(() {
_filamentController.setBackgroundImage('assets/background.ktx',
fillHeight: true);
}, "load background image (fill height)"),
_item(() {
_filamentController
.loadSkybox('assets/default_env/default_env_skybox.ktx');