Skip to main content

klinex 0.1.1 copy "klinex: ^0.1.1" to clipboard
klinex: ^0.1.1 copied to clipboard

A minimal, fast, extensible K-line (candlestick) chart for Flutter, written from scratch. Zero third-party dependencies.

Changelog #

0.1.1 #

  • Lower Dart SDK floor to >=3.10.0 (Flutter >=3.38.0)
  • Add pub.dev screenshots: realtime chart, stock chart, crypto chart
  • Replace private-named-parameter constructors so the package analyzes under Dart 3.10

0.1.0 #

Stocks #

  • TradingSession with A-share, Hong Kong and US presets (lunch breaks, US daylight saving, exchange time zone); normalize aligns minute bars to session slots
  • Intraday chart: KChart.slotAxis with IntradayAxis (fixed minute slots, empty future slots, session ticks), AveragePrice indicator, optional Bar.amount
  • KChart.percentBase (fixed base such as the previous close), percentRightOnly (prices left, percent right) and mainRange (a RangeAdjust such as StockRange adjusting the final main range)
  • PriceLevelsOverlay, PriceLimit and LimitMarksOverlay for previous-close and limit lines
  • KLineTheme.swapUpDown() for the red-up / green-down convention
  • ChartViewport.fixedSlots
  • Full edition: MultiDayAxis for five-day intraday charts, PriceAdjuster / ExRights for forward and backward price adjustment

0.0.1 #

First release.

Chart #

  • ChartController as the single data source: setBars, applyTick (append / update last / backfill), prependHistory with the viewport kept anchored, maxBars history cap, interval aggregation through BarAggregator
  • KChart widget with candles (solid / hollow), line and area series; log, percent, inverted and locked scales; secondary value axis (SecondaryAxis); four y-axis positions; tiered time axis; high / low marks; range animation
  • Built-in indicators: MA, EMA, BOLL, VolOverlay, VOL, MAVol, MACD, KDJ, RSI, WR
  • Plugin axes: custom Indicator, OverlayPlugin and MainSeries, plus underlayBuilder / overlayBuilder host layers and DepthChart
  • Interaction: crosshair with snapping, fixed-line or card tooltip, axis drag zoom, y panning, resizable sub panels, bar taps, draggable price levels (LevelDragController), keyboard, mouse wheel and trackpad, auto follow, scrollToLatest
  • Serialization: IndicatorRegistry, ChartController.saveState / restoreState, KLineTheme.toJson / fromJson
  • Performance: incremental compute per tick, background isolate for full recomputes of 2000+ bars, chunked range caches released under memory pressure

Internationalization #

  • No built-in translations: tooltip and accessibility texts default to English and are replaced through KChartLabels; time zone via utcOffset
  • Full edition texts default to English as well, e.g. IchimokuLabels for the Ichimoku legend

Demo #

  • Samples for every feature and a live Binance market page
  • English and Chinese UI (Flutter Intl + GetX), English by default, switched from the top right of the home page
  • tool/coverage.sh reports line coverage of the library and the demo (80% minimum)
1
likes
160
points
184
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A minimal, fast, extensible K-line (candlestick) chart for Flutter, written from scratch. Zero third-party dependencies.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on klinex