You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, I fixed this issue by using klutzy way haha,
try this https://github.com/arbyazra123/presentation-displays,
I changed the parameter in native android to a = displayId, b = flags, c = rotation, d = displayName
When getDisplays is called a error is throwed: type 'Null' is not a subtype of type 'int'
try { final values = await displayManager.getDisplays(); print(values); } catch (error) { print(error); }
The _displayMethodChannel?.invokeMethod returns:
[{a: 0, b: 3, c: 0, d: Built-in Screen}, {a: 1, b: 11, c: 0, d: HDMI Screen}]
But the displayFromJson expects a json with "displayId", "flags", "name", "rotation", instead receives "a", "b", "c", "d" fields.
The text was updated successfully, but these errors were encountered: