Skip to content

Commit 9959a16

Browse files
Merge pull request #1298 from syncfusion-content/FLUT-965287-UG-treemap-hot
FLUT-965287 - [Feature] Updated ug pages for treemap widget in hotfix branch
2 parents 455c8ad + 501b19c commit 9959a16

File tree

13 files changed

+3090
-2960
lines changed

13 files changed

+3090
-2960
lines changed

Flutter/treemap/accessibility.md

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -16,56 +16,56 @@ The [`SfTreemap`](https://pub.dev/documentation/syncfusion_flutter_treemap/lates
1616
{% tabs %}
1717
{% highlight Dart %}
1818

19-
late List<PopulationModel> _source;
20-
late String _semanticLabel = 'Asia is the most populated continent and Australia is the least populated continent';
21-
22-
@override
23-
void initState() {
24-
_source = const <PopulationModel>[
25-
PopulationModel('Asia', 456.07),
26-
PopulationModel('Africa', 121.61),
27-
PopulationModel('Europe', 74.64),
28-
PopulationModel('North America', 57.9),
29-
PopulationModel('South America', 42.25),
30-
PopulationModel('Australia', 2.54),
31-
];
32-
super.initState();
33-
}
34-
35-
@override
36-
void dispose() {
37-
_source.clear();
38-
super.dispose();
39-
}
40-
41-
@override
42-
Widget build(BuildContext context) {
43-
return Scaffold(
44-
body: Semantics(
45-
label: 'Syncfusion Flutter Treemap',
46-
value: _semanticLabel,
47-
child: Column(
48-
children: [
49-
Expanded(
50-
child: SfTreemap(
51-
dataCount: _source.length,
52-
weightValueMapper: (int index) {
53-
return _source[index].populationInCrores;
54-
},
55-
levels: [
56-
TreemapLevel(
57-
groupMapper: (int index) {
58-
return _source[index].continent;
59-
},
60-
),
61-
],
19+
late List<PopulationModel> _source;
20+
late String _semanticLabel = 'Asia is the most populated continent and Australia is the least populated continent';
21+
22+
@override
23+
void initState() {
24+
_source = const <PopulationModel>[
25+
PopulationModel('Asia', 456.07),
26+
PopulationModel('Africa', 121.61),
27+
PopulationModel('Europe', 74.64),
28+
PopulationModel('North America', 57.9),
29+
PopulationModel('South America', 42.25),
30+
PopulationModel('Australia', 2.54),
31+
];
32+
super.initState();
33+
}
34+
35+
@override
36+
void dispose() {
37+
_source.clear();
38+
super.dispose();
39+
}
40+
41+
@override
42+
Widget build(BuildContext context) {
43+
return Scaffold(
44+
body: Semantics(
45+
label: 'Syncfusion Flutter Treemap',
46+
value: _semanticLabel,
47+
child: Column(
48+
children: [
49+
Expanded(
50+
child: SfTreemap(
51+
dataCount: _source.length,
52+
weightValueMapper: (int index) {
53+
return _source[index].populationInCrores;
54+
},
55+
levels: [
56+
TreemapLevel(
57+
groupMapper: (int index) {
58+
return _source[index].continent;
59+
},
60+
),
61+
],
62+
),
6263
),
63-
),
64-
],
64+
],
65+
),
6566
),
66-
),
67-
);
68-
}
67+
);
68+
}
6969

7070
class PopulationModel {
7171
const PopulationModel(this.continent, this.populationInCrores);

0 commit comments

Comments
 (0)