add fillHeight option to setBackgroundImage

This commit is contained in:
Nick Fisher
2023-09-15 13:00:58 +08:00
parent 3312b88f0a
commit f72ffd6c6a
5 changed files with 23 additions and 8 deletions

View File

@@ -305,7 +305,11 @@ public class SwiftPolyvoxFilamentPlugin: NSObject, FlutterPlugin, FlutterTexture
clear_background_image(viewer)
result(true)
case "setBackgroundImage":
set_background_image(viewer, call.arguments as! String)
let args = call.arguments as! [Any];
let path = args[0] as! String
let fillHeight = args[1] as! Bool
set_background_image(viewer, path, fillHeight)
result(true)
case "setBackgroundImagePosition":
let args = call.arguments as! [Any]