LCOV - code coverage report
Current view: top level - lib/widgets - cwtchlabel.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 8 8 100.0 %
Date: 2024-09-24 21:50:54 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           2 :     return Consumer<Settings>(builder: (context, theme, child) {
      20           1 :       return Text(
      21           2 :         widget.label,
      22           3 :         style: Provider.of<Settings>(context).scaleFonts(defaultFormLabelTextStyle),
      23             :       );
      24             :     });
      25             :   }
      26             : }

Generated by: LCOV version 1.14