LCOV - code coverage report
Current view: top level - lib/pages/home/widgets - music_sheet_overview.dart Coverage Total Hit
Test: lcov.info Lines: 3.2 % 31 1
Test Date: 2025-05-10 20:26:13 Functions: - 0 0

            Line data    Source code
       1              : import 'package:amadeus_proto/app_state.dart';
       2              : import 'package:amadeus_proto/models/music_sheet_info.dart';
       3              : import 'package:flutter/material.dart';
       4              : import 'package:amadeus_proto/pages/home/widgets/music_sheet_overview_item.dart';
       5              : import 'package:provider/provider.dart';
       6              : import 'package:localization/localization.dart';
       7              : 
       8              : class MusicsheetOverview extends StatelessWidget {
       9           12 :   const MusicsheetOverview({super.key});
      10              : 
      11            0 :   @override
      12              :   Widget build(BuildContext context) {
      13            0 :     final appState = context.read<AppState>();
      14              : 
      15            0 :     return Column(
      16            0 :       children: [
      17            0 :         Padding(
      18              :           padding: const EdgeInsets.only(
      19              :               top: 15.0, left: 15.0, right: 15.0, bottom: 10.0),
      20            0 :           child: Row(
      21              :             mainAxisAlignment: MainAxisAlignment.spaceBetween,
      22            0 :             children: [
      23            0 :               Text(
      24            0 :                 "partitions.recent".i18n(),
      25              :                 style:
      26              :                     const TextStyle(fontSize: 17, fontWeight: FontWeight.bold),
      27              :               ),
      28            0 :               SizedBox(
      29              :                 height: 25,
      30            0 :                 child: TextButton(
      31            0 :                   style: TextButton.styleFrom(
      32              :                     minimumSize: Size.zero,
      33              :                     padding: EdgeInsets.zero,
      34              :                   ),
      35            0 :                   child: Text(
      36            0 :                     "seeAll".i18n(),
      37            0 :                     style: TextStyle(
      38            0 :                       color: Theme.of(context).primaryColor,
      39              :                     ),
      40              :                   ),
      41            0 :                   onPressed: () {
      42            0 :                     appState.pageIndex = 2;
      43              :                   },
      44              :                 ),
      45              :               )
      46              :             ],
      47              :           ),
      48              :         ),
      49            0 :         SizedBox(
      50            0 :           height: MediaQuery.of(context).size.height / 4.6,
      51            0 :           child: ListView(
      52              :             scrollDirection: Axis.horizontal,
      53            0 :             children: [
      54              :               const SizedBox(
      55              :                 width: 7,
      56              :               ),
      57            0 :               MusicSheetOverviewItem(
      58            0 :                 infos: MusicSheetInfo(
      59              :                   coverPath: "assets/FigmaDesign/Asset/Images/MusicSheet1.png",
      60            0 :                   title: "partitions.style.classic".i18n(),
      61            0 :                   lastPlayed: DateTime(1970, 1, 1),
      62              :                 ),
      63              :               ),
      64            0 :               MusicSheetOverviewItem(
      65            0 :                 infos: MusicSheetInfo(
      66              :                   coverPath: "assets/FigmaDesign/Asset/Images/MusicSheet2.png",
      67            0 :                   title: "partitions.style.jazz".i18n(),
      68            0 :                   lastPlayed: DateTime(1970, 1, 1),
      69              :                 ),
      70              :               ),
      71              :               const SizedBox(
      72              :                 width: 7,
      73              :               ),
      74              :             ],
      75              :           ),
      76              :         )
      77              :       ],
      78              :     );
      79              :   }
      80              : }
        

Generated by: LCOV version 2.3-1