Skip to content

Commit

Permalink
Update chart_coordinate_render.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
jindong.wang committed Dec 25, 2024
1 parent 41415ac commit a1e5199
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/src/coordinate/chart_coordinate_render.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ part of flutter_chart_plus;
///十字准星样式
class CrossHairStyle {
final Color color;
final bool horizontalShow;
final bool verticalShow;
final double strokeWidth;
//自动调整水平方向位置
final bool adjustHorizontal;
//自动调整垂直方向位置
final bool adjustVertical;

const CrossHairStyle({
this.color = Colors.blue,
this.horizontalShow = true,
Expand All @@ -21,6 +14,14 @@ class CrossHairStyle {
this.adjustHorizontal = false,
this.adjustVertical = false,
});
final Color color;
final bool horizontalShow;
final bool verticalShow;
final double strokeWidth;
//自动调整水平方向位置
final bool adjustHorizontal;
//自动调整垂直方向位置
final bool adjustVertical;
}

typedef ChartTooltipFormatter = InlineSpan? Function(List<ChartLayoutState>);
Expand Down

0 comments on commit a1e5199

Please sign in to comment.