Skip to content

Commit a8137b7

Browse files
update doc
1 parent d8d91ae commit a8137b7

32 files changed

+96
-96
lines changed

lib/src/chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
88

99
/// Widget of charts.
1010
class Chart extends StatefulWidget {
11-
/// The duration animation of charts.
11+
/// The duration of the chart animations.
1212
///
1313
/// Defaults to Duration(milliseconds: 300)
1414
final Duration duration;

lib/src/models/axis/chart_axis_layer.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ part 'data/chart_axis_data_item.dart';
77
part 'settings/chart_axis_settings.dart';
88
part 'settings/chart_axis_settings_axis.dart';
99

10-
/// Provides paint for axis layer.
10+
/// This layer allows to render axises.
1111
class ChartAxisLayer extends ChartLayer {
12-
/// The x of axis.
12+
/// The x of the axis.
1313
final ChartAxisData x;
1414

15-
/// The y of axis.
15+
/// The y of the axis.
1616
final ChartAxisData y;
1717

18-
/// The settings of axis.
18+
/// The settings of the axis.
1919
final ChartAxisSettings settings;
2020

2121
ChartAxisLayer({
@@ -29,7 +29,7 @@ class ChartAxisLayer extends ChartLayer {
2929
label: labelY,
3030
);
3131

32-
/// Dispose all animations.
32+
/// Disposing all animations.
3333
@override
3434
void dispose() {
3535
x.dispose();

lib/src/models/axis/data/chart_axis_data.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
part of '../chart_axis_layer.dart';
22

3-
/// Provides data of axis.
3+
/// Providing datas of the selected axis.
44
class ChartAxisData {
55
/// The items data of axis.
66
final List<ChartAxisDataItem> items;
77

8-
/// The max value in data.
8+
/// The max value in the data.
99
final double max;
1010

11-
/// The min value in data.
11+
/// The min value in the data.
1212
final double min;
1313

1414
ChartAxisData({
@@ -17,7 +17,7 @@ class ChartAxisData {
1717
required this.min,
1818
});
1919

20-
/// Dispose all animations.
20+
/// Disposing all animations.
2121
void dispose() {
2222
for (final ChartAxisDataItem item in items) {
2323
item.dispose();

lib/src/models/axis/data/chart_axis_data_item.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of '../chart_axis_layer.dart';
22

3-
/// Provides data item of the axis.
3+
/// A collection of values for an axis in a chart.
44
class ChartAxisDataItem {
55
/// The label of data item.
66
final String label;
@@ -37,7 +37,7 @@ class ChartAxisDataItem {
3737
/// Defaults to TextStyle(color: Colors.transparent)
3838
TextStyle get lastTextStyle => _textStyle.last;
3939

40-
/// Dispose all animations.
40+
/// Disposing all animations.
4141
void dispose() {
4242
_pos.dispose();
4343
_textStyle.dispose();

lib/src/models/axis/settings/chart_axis_settings.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
part of '../chart_axis_layer.dart';
22

3-
/// Provides settings of axis.
3+
/// A collection of values for settings in axises.
44
class ChartAxisSettings {
5-
/// The x of axis.
5+
/// The x of the axis.
66
final ChartAxisSettingsAxis x;
77

8-
/// The y of axis.
8+
/// The y of the axis.
99
final ChartAxisSettingsAxis y;
1010

1111
const ChartAxisSettings({

lib/src/models/axis/settings/chart_axis_settings_axis.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
part of '../chart_axis_layer.dart';
22

3-
/// Provides settings of the selected axis.
3+
/// A collection of values for settings of the selected axis.
44
class ChartAxisSettingsAxis {
55
/// The frequency of the value.
66
final double frequency;
77

8-
/// The max of the value in axis.
8+
/// The max of the value in the axis.
99
final double max;
1010

11-
/// The min of the value in axis.
11+
/// The min of the value in the axis.
1212
final double min;
1313

1414
/// The TextStyle in axis.

lib/src/models/bar/chart_bar_data_item.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of 'chart_bar_layer.dart';
22

3-
/// Provides data item of bar.
3+
/// A collection of values for a single bar in a chart.
44
class ChartBarDataItem extends ChartDataItem {
55
/// The color of data item.
66
final Color color;
@@ -71,7 +71,7 @@ class ChartBarDataItem extends ChartDataItem {
7171
/// Defaults to Size.zero
7272
Size get lastValueSize => _value.lastSize;
7373

74-
/// Dispose all animations.
74+
/// Disposing all animations.
7575
@override
7676
void dispose() {
7777
_touch.dispose();
@@ -149,7 +149,7 @@ class _ChartBarDataItemTouch {
149149
/// Defaults to Size.zero
150150
Size get lastSize => _size.last;
151151

152-
/// Dispose all animations.
152+
/// Disposing all animations.
153153
void dispose() {
154154
_pos.dispose();
155155
_size.dispose();
@@ -221,7 +221,7 @@ class _ChartBarDataItemValue {
221221
/// Defaults to Size.zero
222222
Size get lastSize => _size.last;
223223

224-
/// Dispose all animations.
224+
/// Disposing all animations.
225225
void dispose() {
226226
_color.dispose();
227227
_pos.dispose();

lib/src/models/bar/chart_bar_layer.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ import 'package:flutter/material.dart';
66
part 'chart_bar_data_item.dart';
77
part 'chart_bar_settings.dart';
88

9-
/// Provides paint for bar layer.
9+
/// This layer allows to render bars.
1010
class ChartBarLayer extends ChartLayer {
11-
/// The items data of bar.
11+
/// The items data of bars.
1212
final List<ChartBarDataItem> items;
1313

14-
/// The settings of bar.
14+
/// The settings of bars.
1515
final ChartBarSettings settings;
1616

1717
const ChartBarLayer({
1818
required this.items,
1919
required this.settings,
2020
});
2121

22-
/// Dispose all animations.
22+
/// Disposing all animations.
2323
@override
2424
void dispose() {
2525
for (final ChartBarDataItem item in items) {

lib/src/models/bar/chart_bar_settings.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
part of 'chart_bar_layer.dart';
22

3-
/// Provides settings of bar.
3+
/// A collection of values for settings in bars.
44
class ChartBarSettings {
5-
/// The radius of bar.
5+
/// The radius of bars.
66
///
77
/// Defaults to 4.0
88
final BorderRadius radius;
99

10-
/// The thickness of bar.
10+
/// The thickness of bars.
1111
///
1212
/// Defaults to BorderRadius.zero
1313
final double thickness;

lib/src/models/candle/chart_candle_data_item.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of 'chart_candle_layer.dart';
22

3-
/// Provides data item of candle.
3+
/// A collection of values for a candle in a chart.
44
class ChartCandleDataItem {
55
/// The color of candle item.
66
final Color color;
@@ -21,7 +21,7 @@ class ChartCandleDataItem {
2121
required this.x,
2222
});
2323

24-
/// Dispose all animations.
24+
/// Disposing all animations.
2525
void dispose() {
2626
value1.dispose();
2727
value2.dispose();

0 commit comments

Comments
 (0)