Skip to content

Commit

Permalink
Remove double yellow lines in K-line info dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
tuuzed committed Jan 17, 2022
1 parent 87754f1 commit d9c366a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions lib/k_chart_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -400,17 +400,20 @@ class _KChartWidgetState extends State<KChartWidget>
color = widget.chartColors.infoWindowUpColor;
else if (info.startsWith("-")) color = widget.chartColors.infoWindowDnColor;

return Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Expanded(
child: Text("$infoName",
style: TextStyle(
color: widget.chartColors.infoWindowTitleColor,
fontSize: 10.0))),
Text(info, style: TextStyle(color: color, fontSize: 10.0)),
],
return Material(
color: Colors.transparent,
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Expanded(
child: Text("$infoName",
style: TextStyle(
color: widget.chartColors.infoWindowTitleColor,
fontSize: 10.0))),
Text(info, style: TextStyle(color: color, fontSize: 10.0)),
],
),
);
}

Expand Down

0 comments on commit d9c366a

Please sign in to comment.