LCOV - code coverage report
Current view: top level - lib/pages/subscription/widgets - google_widget.dart Coverage Total Hit
Test: lcov.info Lines: 33.3 % 3 1
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              : // FIXME (HUAWEI) The Subscription function in your App is unavailable -- #373
       5              : //import 'package:app_finance/_classes/controller/purchase_controller.dart';
       6              : import 'package:app_finance/_classes/herald/app_locale.dart';
       7              : //import 'package:app_finance/_classes/herald/app_purchase.dart';
       8              : //import 'package:app_finance/_configs/theme_helper.dart';
       9              : //import 'package:app_finance/pages/subscription/widgets/purchase_widget.dart';
      10              : import 'package:material_ui/material_ui.dart';
      11              : //import 'package:provider/provider.dart';
      12              : 
      13              : class GoogleWidget extends StatelessWidget {
      14            1 :   const GoogleWidget({super.key});
      15              : 
      16            0 :   @override
      17              :   Widget build(BuildContext context) {
      18            0 :     return Center(child: Text(AppLocale.labels.pearDisabled));
      19              :     /*
      20              :     final indent = ThemeHelper.getIndent(2);
      21              :     final purchases = context.watch<AppPurchase>();
      22              :     return Wrap(
      23              :       spacing: indent,
      24              :       runSpacing: indent,
      25              :       children: [
      26              :         PurchaseWidget(
      27              :           'assets/images/coffee.png',
      28              :           title: AppLocale.labels.subscriptionCoffee,
      29              :           product: purchases.product[PurchaseController.pCoffee],
      30              :           purchase: purchases.purchase[PurchaseController.pCoffee],
      31              :         ),
      32              :         PurchaseWidget(
      33              :           'assets/images/dinner.png',
      34              :           title: AppLocale.labels.subscriptionDinner,
      35              :           product: purchases.product[PurchaseController.pDinner],
      36              :           purchase: purchases.purchase[PurchaseController.pDinner],
      37              :         ),
      38              :         PurchaseWidget(
      39              :           'assets/images/coin.png',
      40              :           title: AppLocale.labels.subscriptionTiny,
      41              :           product: purchases.product[PurchaseController.pInitial],
      42              :           purchase: purchases.purchase[PurchaseController.pInitial],
      43              :         ),
      44              :       ],
      45              :     );
      46              :     */
      47              :   }
      48              : }
        

Generated by: LCOV version 2.0-1