LCOV - code coverage report
Current view: top level - lib/pages/settings - settings_page.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 1 17 5.9 %
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/_configs/theme_helper.dart';
       6             : import 'package:app_finance/pages/_interfaces/abstract_page_state.dart';
       7             : import 'package:app_finance/design/wrapper/tab_widget.dart';
       8             : import 'package:app_finance/pages/settings/widgets/import_tab.dart';
       9             : import 'package:app_finance/pages/settings/widgets/setting_tab.dart';
      10             : import 'package:app_finance/pages/settings/widgets/recover_tab.dart';
      11             : import 'package:flutter/material.dart';
      12             : 
      13             : class SettingsPage extends StatefulWidget {
      14           5 :   const SettingsPage({super.key});
      15             : 
      16           0 :   @override
      17           0 :   SettingsPageState createState() => SettingsPageState();
      18             : }
      19             : 
      20             : class SettingsPageState extends AbstractPageState<SettingsPage> {
      21           0 :   @override
      22           0 :   String getTitle() => AppLocale.labels.settingsHeadline;
      23             : 
      24           0 :   @override
      25             :   String getButtonName() => '';
      26             : 
      27           0 :   @override
      28             :   Widget buildButton(BuildContext context, BoxConstraints constraints) => ThemeHelper.emptyBox;
      29             : 
      30           0 :   @override
      31             :   Widget buildContent(BuildContext context, BoxConstraints constraints) {
      32           0 :     return TabWidget(
      33             :       focus: 0,
      34             :       type: TabType.secondary,
      35           0 :       isLeft: ThemeHelper.isNavRight(context, constraints),
      36           0 :       tabs: [
      37           0 :         Tab(
      38             :           icon: const Icon(Icons.settings),
      39           0 :           text: AppLocale.labels.settingsBaseHeadline,
      40             :         ),
      41           0 :         Tab(
      42             :           icon: const Icon(Icons.health_and_safety),
      43           0 :           text: AppLocale.labels.recoveryHeadline,
      44             :         ),
      45           0 :         Tab(
      46             :           icon: const Icon(Icons.imagesearch_roller_sharp),
      47           0 :           text: AppLocale.labels.importHeadline,
      48             :         ),
      49             :       ],
      50             :       children: const [
      51             :         SettingTab(),
      52             :         RecoverTab(),
      53             :         ImportTab(),
      54             :       ],
      55             :     );
      56             :   }
      57             : }

Generated by: LCOV version 1.14