codelessly_api 22.0.0
codelessly_api: ^22.0.0 copied to clipboard
Flutter's widgets and layouts as plain, immutable data with a JSON format. The model behind the Codelessly Editor and the Codelessly SDK. Pure Dart.
22.0.0 #
Breaking changes
Behavioursis nowBehaviors.BehaviourFieldsis nowBehaviorFields.Node.behavioursis nowNode.behaviors, and thebehaviours:parameter ofNode()andNode.copyWithis nowbehaviors:.
The JSON format is unchanged: behaviors are stored flat in the node's JSON under the same keys.
21.0.1 #
- Documentation: a cleaner README.
21.0.0 #
Breaking changes
- Requires Dart 3.12 or newer.
- Requires
collection1.19.1 or newer andmeta1.19.0 or newer. If your app pins older versions of either, raise them alongside this package.
New
- A guide to the model, with runnable samples in
example/: docs/guide.
The model classes and the JSON format are unchanged from 20.0.1.
20.0.1 #
New
StyleSheetholds a project's named text and color styles (NamedTextStyle,NamedColorStyle).StyleSheet.themereads theThemeTokensfrom them by name.
20.0.0 #
Breaking changes
- A new data model and JSON format (
"schema": 2). Nodes use Flutter's own parameter names, types and defaults, and a layout is aLayoutDocument: its canvases and every node in one flat map. - Decoding is total:
fromJsonnever throws, unknown keys and node types round-trip, and a bad value falls back to its default. Encoding is sparse: values equal to Flutter's defaults are not written.