flexi_kline_draw_tools 2.6.0
flexi_kline_draw_tools: ^2.6.0 copied to clipboard
Drawing tools for flexi_kline charts, including trend lines, Fibonacci retracements, parallel channels and more.
2.6.0 #
- Raise minimum SDK to Dart 3.11 / Flutter 3.41 to match
flexi_kline2.6.0 (Breaking Changes). - Align the version with
flexi_kline2.6.0: during v2 the major.minor tracks the minimum requiredflexi_klinemajor.minor, and own changes bump the patch. - Raise the
flexi_klineconstraint to^2.6.0for the painting layer. - Paint fibonacci, fib fans, price line and trend angle labels with cached
LabelPainters: labels are re-laid out only when their value changes, and are now placed by measured height instead ofTextAreaConfig.areaHeight(may shift by up to 1px). - Reuse one fill
Paintfor fibonacci level backgrounds instead of allocating one per level per frame.
2.0.1 #
- Raise minimum SDK to Dart 3.9 / Flutter 3.35; bump
json_annotationto^4.12.0. - Align
analysis_options.yamlwith the coreflexi_klinepackage. - Regenerate
.g.dartfiles with json_serializable 6.14.1 (null-aware elements syntax). - Apply dart format tall style.
2.0.0 #
First release to pub.dev. The major version is aligned with flexi_kline; prior 0.x / 1.x versions were never published.
Breaking changes (relative to internal 1.0.1)
ParalleChannel→ParallelChannel: Fix typo — class namesParalleChannelDrawObject/ParalleChannelDrawParam, fieldparalleBgOpacity, and file nameparalle_channel.dartare all corrected toParallel.drawObjectbuilders→drawObjectBuilders: Rename the top-level variable (capitalB) and wrap it withMap.unmodifiableto prevent external mutation.- Unified config entry
DrawToolsConfig: Thestatic drawParamfields on 7DrawObjectsubclasses are now read-only getters backed byDrawToolsConfig. UseDrawToolsConfig.configure()to customise any tool's parameters in one call.DrawToolsConfig.resetAll()is provided for test isolation. FibRetracementDrawObjectis now independent: No longer extendsFibExpansionDrawObject; it has its owndrawParaminstance. UseDrawToolsConfig.configure(fibRetracement: ...)to customise retracement separately from expansion.- Remove hard-coded debug colours: Default values of
PriceLineDrawParam.priceTextandTrendAngleDrawParam.angleTextchanged from hard-coded red tonull, falling back to the coreDrawConfig.ticksTexttheme colour.
Other changes
- pubspec: Point
repository/issue_trackerto the main repoFlexiKline/FlexiKline; widencopy_with_extensionupper bound to<18.0.0(covers 17.1.0). - dartdoc: Convert all 18 draw-type constants in
common.dartfrom//to///; add doc comments to public API. - lint: Switch to
package:flutter_lints/flutter.yamland align rules with the core package; remove redundantlintsdev dependency.
1.0.1 #
- Fix
horizontalTrendLineandhorizontalRayLinebeing stuck at their original price: aligning both points topoints.first.dymade the first point align to itself, so neither dragging it nor translating the whole line could change dy. - Fix
extendedTrendLinedrawing its line as a back-and-forth polygon, which broke dash phase and darkened translucent colors; it now draws one straight segment viaclipLineToRect. - Fix a division by zero in the fibonacci tools when the palette (
fibColors/fibFansColors) and the line colour are both unset; colour resolution now falls back to the theme viaresolveFibColors. - Add the first test suite for the package (draw geometry, hit testing, move semantics, colour fallback).
1.0.0 #
- Adapts flexi_kline 1.2.0
0.9.0 #
- Adapts flexi_kline 0.9.0 new version
0.8.0 #
- Migrate the drawing tool to the new library