LCOV - code coverage report
Current view: top level - lib/exercises/lesson - exercise_lesson_button.dart Coverage Total Hit
Test: lcov.info Lines: 7.7 % 13 1
Test Date: 2025-05-10 20:26:13 Functions: - 0 0

            Line data    Source code
       1              : import 'package:amadeus_proto/constants.dart';
       2              : import 'package:amadeus_proto/exercises/lesson/exercise_lesson_list.dart';
       3              : import 'package:amadeus_proto/exercises/lesson/exercise_lesson_page.dart';
       4              : import 'package:amadeus_proto/page_route_transition.dart';
       5              : import 'package:flutter/material.dart';
       6              : import 'package:flutter_svg/svg.dart';
       7              : import 'package:localization/localization.dart';
       8              : 
       9              : class ExerciseLessonButton extends StatelessWidget {
      10           12 :   const ExerciseLessonButton({super.key});
      11              : 
      12            0 :   @override
      13              :   Widget build(BuildContext context) {
      14            0 :     return GestureDetector(
      15            0 :       onTap: () {
      16              :         // Navigator.of(context).push(pageRouteTransition(LessonList())
      17            0 :         Navigator.of(context).push(pageRouteTransition(const LessonList())
      18              :             // categoryName: exercisesType.categoryName,
      19              :             // exercises: exercisesType.exercises))
      20              :             // MaterialPageRoute(
      21              :             //     builder: (context) => CategoriesExercises(
      22              :             //         categoryName: exercisesType.categoryName,
      23              :             //         exercises: exercisesType.exercises),
      24              :             //     maintainState: true));
      25              :             );
      26              :       },
      27            0 :       child: Center(
      28            0 :         child: Card(
      29            0 :             shape: RoundedRectangleBorder(
      30            0 :               borderRadius: BorderRadius.circular(smallBorderRadius),
      31              :               side: const BorderSide(color: Color(0xFFDFDFDF), width: 1.0),
      32              :             ),
      33            0 :             child: Column(
      34              :               mainAxisSize: MainAxisSize.min,
      35            0 :               children: <Widget>[
      36            0 :                 ListTile(
      37              :                   leading: const Icon(
      38              :                     Icons.book,
      39              :                     color: Colors.black,
      40              :                   ),
      41            0 :                   title: Text("lessons.title".i18n(),
      42              :                       overflow: TextOverflow.visible,
      43              :                       style: const TextStyle(
      44              :                           color: Colors.black,
      45              :                           fontSize: mediumTextSize,
      46              :                           fontWeight: FontWeight.bold)),
      47              :                 )
      48              :               ],
      49              :             )),
      50              :       ),
      51              :     );
      52              :   }
      53              : }
        

Generated by: LCOV version 2.3-1