LCOV - code coverage report
Current view: top level - lib/charts - radial_bar_chart.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 11 0.0 %
Date: 2024-10-04 11:09:33 Functions: 0 0 -

          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:flutter/material.dart';
       5             : 
       6             : class RadialBarChart extends StatelessWidget {
       7             :   final Color? color;
       8             :   final IconData? icon;
       9             :   final double progress;
      10             : 
      11           0 :   const RadialBarChart({
      12             :     super.key,
      13             :     required this.progress,
      14             :     this.color,
      15             :     this.icon,
      16             :   });
      17             : 
      18           0 :   @override
      19             :   Widget build(BuildContext context) {
      20           0 :     return Stack(
      21             :       alignment: Alignment.center,
      22           0 :       children: [
      23           0 :         CircularProgressIndicator(
      24           0 :           value: progress,
      25             :           strokeWidth: 4,
      26           0 :           color: color,
      27           0 :           backgroundColor: Colors.grey.withOpacity(0.5),
      28             :         ),
      29           0 :         Icon(
      30           0 :           icon,
      31           0 :           color: color,
      32             :         ),
      33             :       ],
      34             :     );
      35             :   }
      36             : }

Generated by: LCOV version 1.14