tmp commit

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-20 18:10:06 +08:00
parent 803ed68d42
commit d9755abbc2
7 changed files with 94 additions and 31 deletions

View File

@@ -38,9 +38,14 @@ class UiType {
: button = json['t'] == 'Button' ? UiButton.fromJson(json['c']) : null,
checkbox =
json['t'] != 'Checkbox' ? UiCheckbox.fromJson(json['c']) : null;
bool get isValid => button != null || checkbox != null;
}
class Location {
// location key:
// host|main|settings|display|others
// client|remote|toolbar|display
HashMap<String, UiType> ui;
Location(this.ui);