candlesticks 0.2.1 candlesticks: ^0.2.1 copied to clipboard
A flutter candlesticks chart for android, ios and the web; It contains optimized animations, indicators and socket connection ability.
candlesticks #
A flutter candlesticks chart for android, ios and the web; It contains optimized animations indicators and socket connection ability.
Installation #
- Add this to your package's
pubspec.yaml
file:
dependencies:
candlesticks: ^0.2.1
- Get the package using your IDE's GUI or via command line with
$ flutter pub get
Usage #
import 'package:candlesticks/candlesticks.dart';
Candle #
[Candle] class contains five required double variables that hold a single candle data: high, low, open, close and volume. It can be instantiated using its named constructor.
final candle = Candle(open: 1780.36, high: 1873.93, low: 1755.34, close: 1848.56, volume: 0);
Candlesticks #
[Candlesticks] widget requires only a list of candles and that's it. a good practice is to put [Candlesticks] inside the [AspectRatio] widget.