Skip to content

Commit 0bf6dfe

Browse files
committed
Conditions #20
- Remove color variable type. - Use conditions button instead of variable property button for fills.
1 parent 6258127 commit 0bf6dfe

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

lib/src/api/models/variables_model.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ enum VariableType {
2020
boolean,
2121

2222
/// List type. Represents a list of values.
23-
list,
24-
25-
/// Color type. Represents a color value.
26-
color;
23+
list;
2724

2825
/// Returns a string representation of the variable type.
2926
String get label {
@@ -38,8 +35,6 @@ enum VariableType {
3835
return 'Boolean';
3936
case VariableType.list:
4037
return 'List';
41-
case VariableType.color:
42-
return 'Color';
4338
}
4439
}
4540
}
@@ -65,6 +60,7 @@ class VariableData
6560
/// explicitly provided by the user.
6661
final String value;
6762

63+
@JsonKey(unknownEnumValue: VariableType.text)
6864
/// Type of the variable. This is used to determine how to parse the value.
6965
final VariableType type;
7066

lib/src/api/models/variables_model.g.dart

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)