codelessly_api 0.0.3 copy "codelessly_api: ^0.0.3" to clipboard
codelessly_api: ^0.0.3 copied to clipboard

unlisted

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.

example/example.md

Creating a new node #

import 'package:codelessly_api/codelessly_api.dart';
import 'package:json_annotation/json_annotation.dart';

part 'my_node.g.dart';

/// An example of how to create a new node.
@JsonSerializable()
class MyNode extends BaseNode {
  @override
  final String type = 'myNode';

  MyNode({
    required super.id,
    required super.name,
    required super.basicBoxLocal,
  });

  factory MyNode.fromJson(Map json) => _$MyNodeFromJson(json);

  @override
  Map toJson() => _$MyNodeToJson(this);
}

3
likes
0
pub points
65%
popularity

Publisher

verified publishercodelessly.com

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.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, equatable, json_annotation, vector_math

More

Packages that depend on codelessly_api