LCOV - code coverage report
Current view: top level - lib/exercises - exercise_question.dart Coverage Total Hit
Test: lcov.info Lines: 20.0 % 5 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/exercises_provider.dart';
       3              : import 'package:flutter/material.dart';
       4              : import 'package:provider/provider.dart';
       5              : 
       6              : /// Widget that will display the description of the exercise.
       7              : ///
       8              : /// This widget is generic type [T] that must extends from
       9              : /// the [ExerciseProvider].
      10              : ///
      11              : /// This widget will display the [question] from the provider.
      12              : class ExerciseQuestion<T extends ExerciseProvider> extends StatelessWidget {
      13           60 :   const ExerciseQuestion({super.key});
      14              : 
      15            0 :   @override
      16              :   Widget build(BuildContext context) {
      17            0 :     return Consumer<T>(builder: (context, provider, child) {
      18            0 :       return Padding(
      19              :         padding: const EdgeInsets.symmetric(
      20              :             vertical: mediumPadding, horizontal: smallPadding),
      21            0 :         child: Text(provider.question,
      22              :             textAlign: TextAlign.left,
      23              :             style: const TextStyle(
      24              :               fontWeight: FontWeight.w600,
      25              :               fontSize: mediumTextSize,
      26              :             )),
      27              :       );
      28              :     });
      29              :   }
      30              : }
        

Generated by: LCOV version 2.3-1