Skip to content

Commit 42b7df1

Browse files
committed
v0.0.4 Release
- Add Variables and Conditions support.
1 parent f0e87ed commit 42b7df1

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.0.4
2+
- Add Variables and Conditions support.
3+
14
## 0.0.3
25
- Update SDK constraints.
36
- Update ReadMe.

example/example.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,23 @@
44
import 'package:codelessly_api/codelessly_api.dart';
55
import 'package:json_annotation/json_annotation.dart';
66
7-
part 'my_node.g.dart';
7+
part 'custom_node.g.dart';
88
99
/// An example of how to create a new node.
1010
@JsonSerializable()
11-
class MyNode extends BaseNode {
11+
class CustomNode extends BaseNode {
1212
@override
13-
final String type = 'myNode';
13+
final String type = 'custom_node';
1414
15-
MyNode({
15+
CustomNode({
1616
required super.id,
1717
required super.name,
1818
required super.basicBoxLocal,
1919
});
2020
21-
factory MyNode.fromJson(Map json) => _$MyNodeFromJson(json);
21+
factory CustomNode.fromJson(Map json) => _$CustomNodeFromJson(json);
2222
2323
@override
24-
Map toJson() => _$MyNodeToJson(this);
24+
Map toJson() => _$CustomNodeToJson(this);
2525
}
26-
2726
```

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: codelessly_api
22
description: Flutter's layouts and widgets represented as models and JSON data. This API is used by the Codelessly Editor and CloudUI SDK to render Flutter Widgets.
33

4-
version: 0.0.3
4+
version: 0.0.4
55

66
homepage: https://codelessly.com/
77
repository: https://github.com/Codelessly/CodelesslyAPI

0 commit comments

Comments
 (0)