klinex 0.1.1
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 #
TradingSessionwith A-share, Hong Kong and US presets (lunch breaks, US daylight saving, exchange time zone);normalizealigns minute bars to session slots- Intraday chart:
KChart.slotAxiswithIntradayAxis(fixed minute slots, empty future slots, session ticks),AveragePriceindicator, optionalBar.amount KChart.percentBase(fixed base such as the previous close),percentRightOnly(prices left, percent right) andmainRange(aRangeAdjustsuch asStockRangeadjusting the final main range)PriceLevelsOverlay,PriceLimitandLimitMarksOverlayfor previous-close and limit linesKLineTheme.swapUpDown()for the red-up / green-down conventionChartViewport.fixedSlots- Full edition:
MultiDayAxisfor five-day intraday charts,PriceAdjuster/ExRightsfor forward and backward price adjustment
0.0.1 #
First release.
Chart #
ChartControlleras the single data source:setBars,applyTick(append / update last / backfill),prependHistorywith the viewport kept anchored,maxBarshistory cap, interval aggregation throughBarAggregatorKChartwidget 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,OverlayPluginandMainSeries, plusunderlayBuilder/overlayBuilderhost layers andDepthChart - 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 viautcOffset - Full edition texts default to English as well, e.g.
IchimokuLabelsfor 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.shreports line coverage of the library and the demo (80% minimum)
