feat: K线图升级为flutter_chen_kchart,性能更优交互更流畅

This commit is contained in:
2026-04-07 22:35:39 +08:00
parent beda32aa50
commit fda1b0ef52
88 changed files with 43172 additions and 43020 deletions

View File

@@ -1,5 +1,5 @@
import 'package:flutter/foundation.dart';
import 'package:k_chart/entity/k_line_entity.dart';
import 'package:flutter_chen_kchart/k_chart.dart';
import '../models/candle.dart';
/// 时间周期
@@ -25,6 +25,8 @@ class IndicatorSettings {
final bool showMACD;
final bool showKDJ;
final bool showRSI;
final bool showWR;
final bool showCCI;
const IndicatorSettings({
this.showMA = true,
@@ -34,6 +36,8 @@ class IndicatorSettings {
this.showMACD = true,
this.showKDJ = false,
this.showRSI = false,
this.showWR = false,
this.showCCI = false,
});
IndicatorSettings copyWith({
@@ -44,6 +48,8 @@ class IndicatorSettings {
bool? showMACD,
bool? showKDJ,
bool? showRSI,
bool? showWR,
bool? showCCI,
}) {
return IndicatorSettings(
showMA: showMA ?? this.showMA,
@@ -53,6 +59,8 @@ class IndicatorSettings {
showMACD: showMACD ?? this.showMACD,
showKDJ: showKDJ ?? this.showKDJ,
showRSI: showRSI ?? this.showRSI,
showWR: showWR ?? this.showWR,
showCCI: showCCI ?? this.showCCI,
);
}
}