f_b_kline 0.0.1+4 copy "f_b_kline: ^0.0.1+4" to clipboard
f_b_kline: ^0.0.1+4 copied to clipboard

Flutter has excellent neutral performance and easy access to the K line library! f_ b_ kline = flutter best kline

### 使用 持续更新中请尽量使用库依赖

Adapter不需要重新初始化 只需要一个adapter请做好内存管理


    final DataAdapter adapter = DataAdapter();

    ......

   return Container(
          margin: const EdgeInsets.only(top: 100),
          width: double.maxFinite,
          ///max height
          height: 400, 
          child: KChartWidget(
            /// data adapter 
            adapter,
            /// static config
            config: KRunConfig(
              dateFormatter: (int? value) {
                return formatDate(
                    DateTime.fromMillisecondsSinceEpoch(value ?? 0));
              },
              mainValueFormatter: (number) {
                return number?.toStringAsFixed(3) ?? '--';
              },
              volValueFormatter: (number) {
                return number?.toStringAsFixed(3) ?? '--';
              },
              infoBuilder:(_){
                return ...
              } 
            ),
          ),
        )

修改指数参数及配置信息 #

KStaticConfig 静态配置信息

    KStaticConfig()
      ..mainMa1 = 10
      ..mainMa2 = 30
      ....

常用API #

  ///重置数据 当数据发生变化时调用
  ///[KLineEntity]数据模型
  resetData(List<KLineEntity>? data, {bool resetTranslate = false})
  ///chart display type 
  /// [ChartGroupType]  main display area
  /// [ChartSenType]    second type
  /// [ChartDisplayType]  time/kline
  /// [MainDisplayType]   boll / ma /none
  changeType(dynamic type) 
  /// change chart display location
  changeTranslate(double translate)
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Flutter has excellent neutral performance and easy access to the K line library! f_ b_ kline = flutter best kline

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on f_b_kline