add fillHeight option to setBackgroundImage

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

No files matched your search

+5 -1
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]