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

          Line data    Source code
       1             : import 'package:app_finance/_classes/herald/app_locale.dart';
       2             : import 'package:flutter/material.dart';
       3             : 
       4             : class ConfirmationWrapper {
       5           0 :   static void show(BuildContext context, Function callback) {
       6           0 :     final popAction = Navigator.of(context).pop;
       7           0 :     showDialog(
       8             :       context: context,
       9           0 :       builder: (BuildContext context) {
      10           0 :         return AlertDialog(
      11           0 :           title: Text(AppLocale.labels.confirmHeader),
      12           0 :           content: Text(AppLocale.labels.confirmTooltip),
      13           0 :           actions: <Widget>[
      14           0 :             TextButton(
      15             :               onPressed: popAction,
      16           0 :               child: Text(AppLocale.labels.btnCancel),
      17             :             ),
      18           0 :             TextButton(
      19           0 :               onPressed: () {
      20           0 :                 popAction();
      21           0 :                 callback();
      22             :               },
      23           0 :               child: Text(AppLocale.labels.btnConfirm),
      24             :             ),
      25             :           ],
      26             :         );
      27             :       },
      28             :     );
      29             :   }
      30             : }

Generated by: LCOV version 1.14