Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/src/api/models/paint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
);

/// Create a Solid Paint with only the required properties.
PaintModel.solid({
const PaintModel.solid({
required this.id,
this.visible = true,
this.opacity = 1,
Expand All @@ -238,7 +238,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
assetID = null;

/// Create an Image Paint with only the required properties.
PaintModel.image({
const PaintModel.image({
required this.id,
required this.downloadUrl,
required this.fit,
Expand Down Expand Up @@ -266,7 +266,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
color = null;

/// Creates [PaintModel] with linear gradient.
PaintModel.linearGradient({
const PaintModel.linearGradient({
required this.id,
this.visible = true,
this.opacity = 1,
Expand All @@ -292,7 +292,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
assetID = null;

/// Creates [PaintModel] with radial gradient.
PaintModel.radialGradient({
const PaintModel.radialGradient({
required this.id,
this.visible = true,
this.opacity = 1,
Expand All @@ -318,7 +318,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
assetID = null;

/// Creates [PaintModel] with angular gradient.
PaintModel.angularGradient({
const PaintModel.angularGradient({
required this.id,
this.visible = true,
this.opacity = 1,
Expand All @@ -344,7 +344,7 @@ class PaintModel with EquatableMixin, SerializableMixin {
assetID = null;

/// Creates [PaintModel] with given data.
PaintModel({
const PaintModel({
required this.id,
required this.type,
this.visible = true,
Expand Down
4 changes: 4 additions & 0 deletions lib/src/api/models/shape_border.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ enum CShapeBorder {

/// Displayable string representation of this [CShapeBorder].
final String label;

/// Whether this [CShapeBorder] can have a radius.
bool get canHaveRadius =>
this != rectangle && this != circle && this != stadium;
}
1 change: 1 addition & 0 deletions lib/src/api/node_json_converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class NodeJsonConverter implements JsonConverter<BaseNode?, Map> {
'variance': VarianceNode.fromJson,
'listView': ListViewNode.fromJson,
'pageView': PageViewNode.fromJson,
'tabBar': TabBarNode.fromJson,
};
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/api/nodes/nodes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ export 'variance_node.dart';
export 'web_view_google_maps_properties.dart';
export 'web_view_node.dart';
export 'web_view_twitter_properties.dart';
export 'tab_bar_node.dart';
Loading