LCOV - code coverage report
Current view: top level - problems/widgets - problem_page_view.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 7 85.7 %
Date: 2022-03-03 12:16:56 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/material.dart';
       2             : 
       3             : import '../../../types.dart';
       4             : import '../../redux/extensions/build_context_extensions.dart';
       5             : import '../actions/remove_problem_action.dart';
       6             : 
       7             : class ProblemPageView<T extends RedFireState> extends StatelessWidget {
       8           4 :   const ProblemPageView(this.info, {Key? key}) : super(key: key);
       9             : 
      10             :   final ProblemInfo info;
      11             : 
      12           2 :   @override
      13             :   Widget build(BuildContext context) {
      14           2 :     return AlertDialog(
      15             :       title: const Text('Whoops'),
      16           8 :       content: SingleChildScrollView(child: Text(info.message)),
      17           2 :       actions: [
      18           2 :         OutlinedButton(
      19           0 :             onPressed: () => context.dispatch<T>(RemoveProblemAction(info)),
      20             :             child: const Text('Dismiss'))
      21             :       ],
      22             :     );
      23             :   }
      24             : }

Generated by: LCOV version 1.13