add fillHeight option to setBackgroundImage
This commit is contained in:
1 parent
3312b88f0a
commit
f72ffd6c6a
5 files changed
+23
-8
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user