codelessly_api 0.6.0-pre.1 copy "codelessly_api: ^0.6.0-pre.1" to clipboard
codelessly_api: ^0.6.0-pre.1 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:codelessly_json_annotation/codelessly_json_annotation.dart';

part 'custom_node.g.dart';

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

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

  factory CustomNode.fromJson(Map json) => _$CustomNodeFromJson(json);

  @override
  Map toJson() => _$CustomNodeToJson(this);
}
3
likes
0
pub points
39%
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

codelessly_json_annotation, collection, equatable, intl, meta, vector_math

More

Packages that depend on codelessly_api