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

+2 -2
View File
@@ -131,11 +131,11 @@ class FilamentController {
await _channel.invokeMethod("clearBackgroundImage");
}
Future setBackgroundImage(String path) async {
Future setBackgroundImage(String path, {bool fillHeight = false}) async {
if (_viewer == null || _resizing) {
throw Exception("No viewer available, ignoring");
}
await _channel.invokeMethod("setBackgroundImage", path);
await _channel.invokeMethod("setBackgroundImage", [path, fillHeight]);
}
Future setBackgroundColor(Color color) async {