Line data Source code
1 : // Copyright 2023 The terCAD team. All rights reserved. 2 : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file. 3 : 4 : import 'package:app_finance/charts/bar_vertical_group.dart'; 5 : import 'package:flutter/material.dart'; 6 : 7 : class BarVerticalSingle extends StatelessWidget { 8 : final Color color; 9 : final double value; 10 : final double height; 11 : final double width; 12 : 13 1 : const BarVerticalSingle({ 14 : super.key, 15 : required this.color, 16 : required this.value, 17 : this.height = 32, 18 : this.width = 4, 19 : }); 20 : 21 1 : @override 22 : Widget build(BuildContext context) { 23 1 : return BarVerticalGroup( 24 2 : color: [color], 25 2 : value: [value], 26 1 : height: height, 27 1 : width: width, 28 : ); 29 : } 30 : }