LCOV - code coverage report
Current view: top level - lib/pages/bill - bill_edit_page.dart Coverage Total Hit
Test: lcov.info Lines: 0.0 % 17 0
Test Date: 2026-11-14 15:08:11 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/structure/bill_app_data.dart';
       5              : import 'package:app_finance/pages/bill/bill_add_page.dart';
       6              : import 'package:app_finance/pages/bill/widgets/expenses_edit_tab.dart';
       7              : import 'package:material_ui/material_ui.dart';
       8              : 
       9              : class BillEditPage extends BillAddPage {
      10              :   final String uuid;
      11              : 
      12            0 :   const BillEditPage({
      13              :     super.key,
      14              :     required this.uuid,
      15              :   });
      16              : 
      17            0 :   @override
      18            0 :   BillEditPageState createState() => BillEditPageState();
      19              : }
      20              : 
      21              : class BillEditPageState extends BillAddPageState<BillEditPage> {
      22            0 :   @override
      23              :   Widget buildContent(BuildContext context, BoxConstraints constraints) {
      24            0 :     final bill = state.getByUuid(widget.uuid) as BillAppData;
      25            0 :     return ExpensesEditTab(
      26            0 :       state: state,
      27            0 :       callback: update,
      28            0 :       uuid: widget.uuid,
      29            0 :       account: bill.account == '' ? null : bill.account,
      30            0 :       budget: bill.category == '' ? null : bill.category,
      31            0 :       currency: bill.currency,
      32            0 :       bill: bill.details,
      33            0 :       description: bill.title,
      34            0 :       createdAt: bill.createdAt,
      35            0 :       hasChild: bill.hasChild,
      36            0 :       childOf: bill.childOf,
      37              :     );
      38              :   }
      39              : }
        

Generated by: LCOV version 2.0-1