LCOV - code coverage report
Current view: top level - lib/design/wrapper - confirmation_wrapper.dart Coverage Total Hit
Test: lcov.info Lines: 0.0 % 15 0
Test Date: 2026-11-14 15:08:11 Functions: - 0 0

            Line data    Source code
       1              : import 'package:app_finance/_classes/herald/app_locale.dart';
       2              : import 'package:material_ui/material_ui.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 2.0-1