LCOV - code coverage report
Current view: top level - lib/widgets - cwtchlabel.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 7 7 100.0 %
Date: 2026-07-15 19:28:30 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:cwtch/themes/opaque.dart';
       2             : import 'package:flutter/material.dart';
       3             : import 'package:provider/provider.dart';
       4             : import '../settings.dart';
       5             : 
       6             : // Provides a styled Label
       7             : // Callers must provide a label text
       8             : class CwtchLabel extends StatefulWidget {
       9           1 :   CwtchLabel({required this.label});
      10             :   final String label;
      11             : 
      12           1 :   @override
      13           1 :   _CwtchLabelState createState() => _CwtchLabelState();
      14             : }
      15             : 
      16             : class _CwtchLabelState extends State<CwtchLabel> {
      17           1 :   @override
      18             :   Widget build(BuildContext context) {
      19           1 :     return Consumer<Settings>(
      20           1 :       builder: (context, theme, child) {
      21           6 :         return Text(widget.label, style: Provider.of<Settings>(context).scaleFonts(defaultFormLabelTextStyle));
      22             :       },
      23             :     );
      24             :   }
      25             : }

Generated by: LCOV version 1.14