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:material_ui/material_ui.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 2 : const BarVerticalSingle({
14 : super.key,
15 : required this.color,
16 : required this.value,
17 : this.height = 32,
18 : this.width = 4,
19 : });
20 :
21 2 : @override
22 : Widget build(BuildContext context) {
23 2 : return BarVerticalGroup(
24 4 : color: [color],
25 4 : value: [value],
26 2 : height: height,
27 2 : width: width,
28 : );
29 : }
30 : }
|