From 1944249e0de51efbc069d6207fce20512bb57145 Mon Sep 17 00:00:00 2001 From: Jindra Date: Fri, 16 Jul 2021 21:10:53 +0200 Subject: [PATCH] fix remove component with children test --- CHANGELOG.md | 4 ++++ pubspec.lock | 6 +++--- pubspec.yaml | 2 +- test/src/widget/canvas_test.dart | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c516a68..dc70989 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ +# 0.0.10 + +* Fix remove component with children test. + # 0.0.9 * Add documentation comments to reader/writer diff --git a/pubspec.lock b/pubspec.lock index ef17aa5..3681c02 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.6.1" boolean_selector: dependency: transitive description: @@ -113,7 +113,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: @@ -148,7 +148,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.3.0" typed_data: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 7503d66..0b72c5e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: diagram_editor description: A flutter diagram editor library that provides DiagramEditor widget and a possibility to customize all editor design and behavior. -version: 0.0.9 +version: 0.0.10 homepage: https://github.com/Arokip/fdl environment: diff --git a/test/src/widget/canvas_test.dart b/test/src/widget/canvas_test.dart index 7094861..16d639f 100644 --- a/test/src/widget/canvas_test.dart +++ b/test/src/widget/canvas_test.dart @@ -57,7 +57,7 @@ void main() { String id1 = policySet.canvasWriter.model.addComponent(componentData); String id2 = policySet.canvasWriter.model.addComponent(componentData2); - policySet.canvasReader.model.getComponent(id1).addChild(id2); + policySet.canvasWriter.model.setComponentParent(id2, id1); await tester.pump();