LCOV - code coverage report
Current view: top level - lib/design/button - link_widget.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 12 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:app_finance/_classes/herald/app_locale.dart';
       5             : import 'package:app_finance/_ext/build_context_ext.dart';
       6             : import 'package:app_finance/design/wrapper/text_wrapper.dart';
       7             : import 'package:flutter/material.dart';
       8             : import 'package:flutter/semantics.dart';
       9             : 
      10             : class LinkWidget extends StatelessWidget {
      11             :   final String text;
      12             :   final Function()? onTap;
      13             : 
      14           0 :   const LinkWidget(this.text, {super.key, required this.onTap});
      15             : 
      16           0 :   @override
      17             :   Widget build(BuildContext context) {
      18           0 :     return Semantics(
      19           0 :       attributedHint: AttributedString(AppLocale.labels.typeButton),
      20           0 :       child: MouseRegion(
      21             :         cursor: SystemMouseCursors.click,
      22           0 :         child: GestureDetector(
      23           0 :           onTap: onTap,
      24           0 :           child: TextWrapper(
      25           0 :             text,
      26           0 :             style: TextStyle(
      27           0 :               color: context.colorScheme.primary,
      28             :               decoration: TextDecoration.underline,
      29           0 :               decorationColor: context.colorScheme.primary.withOpacity(0.8),
      30             :             ),
      31             :           ),
      32             :         ),
      33             :       ),
      34             :     );
      35             :   }
      36             : }

Generated by: LCOV version 1.14