Skip to content

Commit a008a10

Browse files
committed
chore: Release v2.0.1 - Fix label jitter and refine typographic stability
1 parent 345a2b8 commit a008a10

4 files changed

Lines changed: 53 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.0.1
2+
3+
* **Bug Fix:** Implemented linear canvas anti-scaling to eliminate vertical jitter and "jumping" of labels during zoom animations.
4+
* **UI Refinement:** Switched to a mathematically stable slot-based layout for multi-line labels, ensuring perfect centering and zero overlap.
5+
* **UI Refinement:** Tightened dynamic opacity range (0.85-1.0) for a more solid and consistent visual style.
6+
* **Example Update:** Restored and updated the Africa category in the World Population example.
7+
18
## 2.0.0
29

310
* **Breaking Change:** Refactored `CircleNode` data model. Renamed `upperLabel` to `displayValue` and reordered constructor arguments (`value` now comes before `displayValue`).

example/lib/main.dart

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,22 +402,59 @@ class StressTestExample extends StatelessWidget {
402402
color: Colors.indigo,
403403
children: [
404404
CircleNode(
405-
label: 'Level 1',
405+
label: 'Branch A',
406406
color: Colors.blue,
407407
children: [
408408
CircleNode(
409-
label: 'Level 2',
409+
label: 'Group A.1',
410410
color: Colors.lightBlue,
411411
children: [
412412
CircleNode(
413-
label: 'Level 3',
413+
label: 'Subgroup A.1.a',
414414
color: Colors.cyan,
415415
children: [
416-
CircleNode(label: 'Leaf 4A', value: 50.0),
417-
CircleNode(label: 'Leaf 4B', value: 50.0),
416+
CircleNode(label: 'Leaf A.1.a.1', value: 50.0),
417+
CircleNode(label: 'Leaf A.1.a.2', value: 50.0),
418418
],
419419
),
420-
CircleNode(label: 'Leaf 3B', value: 100.0),
420+
CircleNode(
421+
label: 'Subgroup A.1.b',
422+
color: Colors.cyanAccent,
423+
children: [
424+
CircleNode(label: 'Leaf A.1.b.1', value: 30.0),
425+
CircleNode(label: 'Leaf A.1.b.2', value: 30.0),
426+
],
427+
),
428+
],
429+
),
430+
CircleNode(
431+
label: 'Group A.2',
432+
color: Colors.blueAccent,
433+
children: [
434+
CircleNode(label: 'Leaf A.2.1', value: 40.0),
435+
CircleNode(label: 'Leaf A.2.2', value: 40.0),
436+
],
437+
),
438+
],
439+
),
440+
CircleNode(
441+
label: 'Branch B',
442+
color: Colors.indigoAccent,
443+
children: [
444+
CircleNode(
445+
label: 'Group B.1',
446+
color: Colors.deepPurple,
447+
children: [
448+
CircleNode(label: 'Leaf B.1.1', value: 60.0),
449+
CircleNode(label: 'Leaf B.1.2', value: 40.0),
450+
],
451+
),
452+
CircleNode(
453+
label: 'Group B.2',
454+
color: Colors.purple,
455+
children: [
456+
CircleNode(label: 'Leaf B.2.1', value: 25.0),
457+
CircleNode(label: 'Leaf B.2.2', value: 25.0),
421458
],
422459
),
423460
],
@@ -441,7 +478,7 @@ class StressTestExample extends StatelessWidget {
441478
return ChartExampleScaffold(
442479
title: 'LIBRARY LIMITS',
443480
root: root,
444-
showValue: false,
481+
showValue: true, // Now showing values as requested
445482
subtitle: 'Testing minimum radii, anti-scaling, and recursive density.',
446483
);
447484
}

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ packages:
108108
path: ".."
109109
relative: true
110110
source: path
111-
version: "1.0.4"
111+
version: "2.0.0"
112112
flutter_lints:
113113
dependency: "direct dev"
114114
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_circle_pack_chart
22
description: A powerful and interactive circle pack chart (circular treemap) library for Flutter.
3-
version: 2.0.0
3+
version: 2.0.1
44
homepage: https://fabiocarneiro.github.io/FlutterCirclePackChart/
55
repository: https://github.com/fabiocarneiro/FlutterCirclePackChart
66
issue_tracker: https://github.com/fabiocarneiro/FlutterCirclePackChart/issues

0 commit comments

Comments
 (0)